Tweet Button OnClick Tracking | Community
Skip to main content
davidb98884514
Level 3
October 16, 2015
Solved

Tweet Button OnClick Tracking

  • October 16, 2015
  • 1 reply
  • 1793 views

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');

});

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Alexis_Cazes_

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

1 reply

Alexis_Cazes_
Alexis_Cazes_Accepted solution
Level 10
October 16, 2015

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