Copy URL share button
The copy-url component is a small CTA that appears at the beginning of a story, allowing a reader to easily copy the page URL to the clipboard for sharing on any social networks. Longer stories will get a second, otherwise identical CTA at the end of the story.
The component is not swapped, so no asset needs to be targeted.
Options
The copy URL component has two configuration options, which should be placed in a {sharing}
block.
value | purpose | default |
---|---|---|
enableCopyURL |
When true , displays the copy URL button |
None |
copyURLButtonLabel |
Sets the text of the button. | "Copy" |
Sample configuration
{sharing}
enableCopyURL:true
copyURLButtonLabel: Share this
{}
Analytics
This component only fires two events:
event | type | action | label |
---|---|---|---|
In view | scroll tracking |
in view |
copy url { top/bottom} |
Button click | content |
copy url { top/bottom} |
copy url clicked copy |