Custom Dimensions


(Christopher Bell) #1

Hi

I have tested the use of custom dimensions and its working great when I have a set value in the code
e.g.

_paq.push(['setCustomDimension', 1, 'LandingPage');

but we have a variable set early in the web page like so

<script type="text/javascript">
	var jsPageName = 'LandingPage';
</script>

I would like to use that variable in the value of the custom dimension, i have tried just putting the variable name in but it didn’t work

_paq.push(['setCustomDimension', 1,jsPageName);

Any Ideas much appreciated !

Chris