[RSS Feed/News] Fire dataLayer upon successful registration and/or payment

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I am implementing paid marketing campaigns and need some transactional data to be sent to my Google Tag Manager in the following format:


Code:

Code:
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
    event: "purchase",
    ecommerce: {
        transaction_id: "T_12345", // Replace "T_12345" with Transaction ID
        value: 25.42, // Replace it with the value of order in float
        tax: 4.90, // Replace it with the tax amount of order, leave it null in case of no tax which...

Read more
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom