How do I track social share icons in one custom script?
Hi,
I am trying to track my social share icons in a custom script.. I have managed to captured the name of each of the icon clicked on but how do I set it to track to different events.
I have events 8,9,10 set up in my Event based rule but need to add a custom script to e.g. set my Facebook Like to event8 and Tweet to event 9 and Pint it to event 10. I didn't want to setup separate event rules for this and thought there will be a way to track each icon to different events using 1 EBR
i tried using if (s.event8) {
s.linkTrackVars=s.LinkTrackEvents="_satellite.setVar('shareType',shareType[0].innerHTML),event8"
s.addEvent('event8')
console.log(s.events);
but it doesn't seem to be working.. I just want to make sure that my FB Like is tracked to event 8, Tweets to event9 etc, instead of having all tracked to all the events set up in my EBR.
Help!