tabalinas / jssocials

Social Network Sharing jQuery Plugin
http://js-socials.com
MIT License
464 stars 104 forks source link

Dynamically append social channel to shared urls #159

Closed ErinBaker closed 7 years ago

ErinBaker commented 7 years ago

Would be great to be able to dynamically add the social channel clicked as utm_source or other parameter to the URL so returning traffic has an acquisition source.

ie. Click Twitter share and the url example.com?utm_source=%share% becomes example.com?utm_source=twitter

tabalinas commented 7 years ago

Redefine shareUrl of the share to include utm_source=%share%. See an example: https://jsfiddle.net/tabalinas/5g4dLwy5/