How to Enable and Disable CopyNShare

Overview

CopyNShare is part of the widget feature that enables you to track the shares that occur when a user copies and pastes your website's URL or content. ShareThis adds a special #hashtag or sthash at the end of your address bar URL to keep track of where your content is being shared on the web, from Facebook, Twitter to emails, etc. When a user copies text within your site, a yourURL.com#SThashtag” will appear after the pasted text.

Options

NameDefinitionTypeOptionsRequirement
doNotHash This is the master option for CopyNShare
This overrides the doNotCopy and hasAddressBar setting. If true, the 2 options are ignored.
boolean true,false Optional
doNotCopy If false,  “See more: yourURL.com#SThashtag” will appear after a user pastes texts after a copy action. boolean true,false Optional
hashAddressBar If true, a special #hastag will be appended to the end of your address bar URL. boolean true,false Optional


How to Enable:

Example:
This code will enable the CopyNShare URL and text tracking:
 
<script type="text/javascript">stLight.options({publisher: "INSERTYOURPUBKEY", doNotHash:false, 
doNotCopy:false,hashAddressBar:true});</script>

 
How to Disable:

Example: This code will disable the CopyNShare URL and text tracking:
 
<script type="text/javascript">stLight.options({publisher: "INSERTYOURPUBKEY", doNotHash:true, 
doNotCopy:true,hashAddressBar:false});</script>