Reply
Highlighted
Visitor
Posts: 31
Registered: ‎09-22-2015

Adding a script via java script extension

Hi,

 

I have added Lytics tag in one of my profiles.

It is working fine on page loads but what i want to do is to fire this on the events with some custom event name.

 

Folowing is the script what Lytics provide in order to send the custom event data - 

jstag.send({
  event: "rescued sansa" 
});

 where is event value should be a dynamic one and i want to map it to the variable we have created to track event name.

 

how do i go about the same with other page level data to send 

Reply
0 Kudos
Tealium Employee
Posts: 215
Registered: ‎09-01-2015

Re: Adding a script via java script extension

Hi @shailesh_gaikwa

 

So there are 2 versions of the tag template Lytics.

The one that I found, that has reference to jstag, is deprecated.

 

However, if you have this version, you can map event and it will send it across in the

jstag.send(g);

 

With regards to the never version, this uses a referent namespace, liosetup, which I can't see how to send event as part of that.

 

I would recommend speaking to your Account Manager or raising a support request, to get the old tag added, if this is what you need.

 

Adrian

Reply
0 Kudos
Visitor
Posts: 31
Registered: ‎09-22-2015

Re: Adding a script via java script extension

[ Edited ]

Hi @adrian_browning,

 

i am trying to map the events through the mapping window of tag but it is not being sent across.

I guess i need to use a javascript extension for the same but i don;t know how to go about it.

 

Thanks for your reply.

 

Regards,

Shailesh Gaikwad

Reply
0 Kudos