Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

Tweet Button OnClick Tracking

Avatar

Level 3

Hello,

I'd like to fire off an event (social click) when someone clicks the "Tweet" button on https://393.universalorlando.com/Events/Mardi-Gras/Live-Concerts.aspx

Here's the tag that I tried, but had no luck with. I'm hoping someone will be able to provide some guidance. Thanks in advance!


onclick="var s=s_gi(s_account);

s.linkTrackVars='eVar5,eVar10,eVar46';

s.linkTrackEvents='event31';

s.eVar5='Mardi Gras';

s.eVar10='Twitter';

s.eVar46='Daughtry Concert';

s.events='event79';

s.tl(this,'o','Mardi Gras | Twitter | Daughtry Concert');

});

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi David,

 

Here is the right code IF you want to track both event31 and event79 at the same time:

onclick="var s=s_gi(s_account);

s.linkTrackVars='events,eVar5,eVar10,eVar46'; //you have to put variable events if you want to track the event

s.linkTrackEvents='event31,event79'; //all events that needs to be tracked have to be listed here

s.eVar5='Mardi Gras';

s.eVar10='Twitter';

s.eVar46='Daughtry Concert';

s.events='event79,event31'; //list all the events to be send

s.tl(this,'o','Mardi Gras | Twitter | Daughtry Concert');

"

That should work. Let me know if it does not.

 

Best regards

 

Alexis Cazes

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi David,

 

Here is the right code IF you want to track both event31 and event79 at the same time:

onclick="var s=s_gi(s_account);

s.linkTrackVars='events,eVar5,eVar10,eVar46'; //you have to put variable events if you want to track the event

s.linkTrackEvents='event31,event79'; //all events that needs to be tracked have to be listed here

s.eVar5='Mardi Gras';

s.eVar10='Twitter';

s.eVar46='Daughtry Concert';

s.events='event79,event31'; //list all the events to be send

s.tl(this,'o','Mardi Gras | Twitter | Daughtry Concert');

"

That should work. Let me know if it does not.

 

Best regards

 

Alexis Cazes