Highlighted

Passing custom variables into Sessioncam tag

Tealium Expert
Tealium Expert

I need to pass a couple of custom parameters to Sessioncam. Reading the short IQ tag instructions it says ""Map any number of items to build the pixel query string values". Since Sessioncam takes key-value-pairs as input I thought that mapping what I need would push them into Sessioncam. This seems not to be the case, they don't turn up in Sessioncam. 

 

(There is a field in the Sessioncam tag called "static params" but I guess they are not what I need, since the values I want vary per page.)

 

What I am missing out here? Or do I need to tweak the template code still?

Best regards

Per

 

3 REPLIES 3
Highlighted

Passing custom variables into Sessioncam tag

Employee Emeritus

@per_lundqvist

Am I looking at the same tag as you?  I don't see where this tag takes any configuration.  

 

tmp-sessioncam-20151118T230351.png

 

Now if you want to be able to pass outbound querystring parameters as key-value-pairs when requesting the sessioncam.recorder.js, you could do this by using a Tealium Generic Tag.

 

Just set the base url to //d2oh4tlt9mrke9.cloudfront.net/Record/js/sessioncam.recorder.js

Change the type to script

and then use the Tag Data Mappings to map any data in your Data Layer to a name that will be the key in the outbound querystring parameters.

 

In the example below, the value of page_name will be passed in the outobund querystring parameter name.

Make sure you reach out to SessionCam to see if they support receiving data in this format.

tmp-session-2-20151118T231023.png

 

tmp-session-3-20151118T231115.png

 

 

Highlighted

Passing custom variables into Sessioncam tag

Tealium Expert
Tealium Expert

Hi Brian

and thanks for reaching out. Should have mentioned that I don't use the specific Sessioncam tag (I don't think it was in the library a year ago when we started..). So, yes I use the generic tag and do exactly as you propose, map a couple of extra parameters. However they don't turn up in Sessioncam, neither I nor the Sessioncam support can find them. But, now I know that this is the way it should be done :-) which is good. I will dig a bit deeper together with a collegue and hope to find the problem.

Highlighted

Passing custom variables into Sessioncam tag

Employee Emeritus

After hearing back from Sessioncam, turns out they need variables passed in another way.  Here is an article that links back to how they want data passed:

https://help.sessioncam.com/hc/en-gb/articles/201080733-Setting-Up-Custom-Variables

 

This code could easily be added to a Tealium JavaScript Extension scopoed to the Sessoncam Tag, something like:

 

if(!window.sessioncamConfiguration)
window.sessioncamConfiguration = new Object();
if(!window.sessioncamConfiguration.customDataObjects)
window.sessioncamConfiguration.customDataObjects = [];
var item = { key: "Name", value: b['page_name'] };
window.sessioncamConfiguration.customDataObjects.push(item);

Notice we are passing the dynamic page_name to the SessionCam tag.