Mapping an URL parameter with an Adobe Analytics event

hasnene
Visitor
hasnene

Hi,

We are using a querystring parameter variable (SearchTerms) to fire an event whenever this variable is present:

Tealium-event.png

However, sometimes, this querystring value itself can contain parameters. And in that case, our event counter is being taking the numerical value which can be included in it.

For instance, if SearchTerms = http://www.canadapost.ca/cpotools/apps/track/business/findByTrackNumber?trackingNumber=7219580126638... then the eVar44 is taking the full value, but the event51 is taking as well the value 7219580126638943 instead of being a counter and being incremented by one.

The result in our analytics data is then completly false:

Tealium-event2.png

Can you help on fixing that in Tealium? Is there an easy way to fix it, without creating any JS code based extension?

Thanks,

Hasnene

 

 

1 REPLY 1
Highlighted

Mapping an URL parameter with an Adobe Analytics event

mvenkatesan
Occasional Contributor
mvenkatesan Occasional Contributor

Hello @hasnene

In this case do not map the value directly to an event, instead follow the below steps -

  1. create a data layet variable 'sc_events' (this you can be used for all SC events)
  2. using set data values extension
      • Set it to JS Code
      • map sc_events to 'u.addEvent('event51')'
      • scope it to SC Tag
      • use a condition when variable 'SearchTerms' is defined and is populated.

scEvent.png

This will take care of it, Hope this helps.

Thanks!