Jump to content

DIBS payment tracking code for ecommerce analytics by google


Recommended Posts

Hi,

 

In one of my client's prestashop there is a payment method called DIBS, this is not returning any tracking code for eCommerce analytics, can any one help to or guide me how to add the tracking parameters for DIBS payment in the thanks-page.

 

sample tracking code:

 

<script type="text/javascript">

 

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-XXXXX-X']);

_gaq.push(['_trackPageview']);

_gaq.push(['_addTrans',

'1234', // order ID - required

'Acme Clothing', // affiliation or store name

'11.99', // total - required

'1.29', // tax

'5', // shipping

'San Jose', // city

'California', // state or province

'USA' // country

]);

 

// add item might be called for every item in the shopping cart

// where your ecommerce engine loops through each item in the cart and

// prints out _addItem for each

_gaq.push(['_addItem',

'1234', // order ID - required

'DD44', // SKU/code - required

'T-Shirt', // product name

'Green Medium', // category or variation

'11.99', // unit price - required

'1' // quantity - required

]);

_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers

 

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

})();

 

</script>

above code must me added and the appropriate parameters with payment return data in thank you page should be passed.

 

 

--jena

Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...