All Collections
Vidalytics Code Customizations
Passing Dynamic Conversion Values
Passing Dynamic Conversion Values
How to pass a dynamic value in your conversion script
Erika Lehmann avatar
Written by Erika Lehmann
Updated over a week ago

Please note: Conversion tracking is not available on the Free plan, to gain access you will need to upgrade to any of our paid plans!

Revenue is trackable with our current conversion script :)

You have to add “value” parameter after “conversionId” in the conversion code. Conversion value should be a number (integer or float).

Like in this example 99.999 is passed (so just pop your dynamic cart value there and we’ll pick it up):

<script>
(function (v, i, d, a, l, y, t, c, s) {
c=function(u,cb){s=i.createElement('script');s.type='text/javascript';s.async=1;s.src=u;s.onload=function(){cb();};i.getElementsByTagName('head')[0].appendChild(s);}
c(l+'conversion.min.js?cid=kpRgkfwv',function(){t=i.createElement('div');t.setAttribute('style','display:none;');t.setAttribute('class',d);i.body.appendChild(t);
y=new v[a]['ConversionTracking']({url:'https://stats.vidalytics.com'},t);y.track('Ce24ZuXZx`',{conversionId: 'kpRgkfwv', value: 99.999});});
})(window, document, 'vidalytics-tracker', 'VidalyticsC', 'https://fast.vidalytics.com/js/');
</script>

Did this answer your question?