Adding a script via java script extension

Gold Contributor
Gold Contributor

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 

2 REPLIES 2

Adding a script via java script extension

Tealium Employee

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

Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.

Adding a script via java script extension

Gold Contributor
Gold Contributor

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

Public