Order number of purchase coming from Google ads

Harshit A. shared this question 42 days ago
Answered

For ERS, the order number shows up inside Google ads console (see attachment).

How can I get the order number for the purchases to show up inside Google ads done for an IO website?

Comments (3)

photo
1

You can use the variable:

'transaction_id': '%leadid%'

to add the lead number to the tracked variables. The lead number is included in the URL of both quotes and contracts, although I'm not sure how that may appear in Google console.

Here's our analytics article for more information on this. It includes info on when analytics will run, and has some videos on this as well.

https://rental.software/support/knowledge-base/article/analytics-tracking

photo
1

You have two boxes under Analytics tracking. One is Quote Conversion, other is Sale Conversion.


Can you tell me on what URLs the code in these boxes executes? There are lot of different URLs, like io_quote, io_contract, io_quoteconfirm. It's very confusing.


There has to be one URL each for each of the two boxes. If I can get those, I can install the codes using Google Tag Manager and pass the values to GA4.

photo
1

Hi Christian, could you please help with this?

photo
1

A quote conversion is triggered when the quote confirmation page loads. A sale conversion is triggered when loading a contract page, but only if payment is received.

photo
1

Christian and Shane, I am not able to pass the purchase ID and value to Google analytics from Google tag manager. The variables are %leadid% and %total% are getting read as strings instead of the actual values.


Here is the command I'm using in google tag manager:


window.dataLayer = window.dataLayer || [];

dataLayer.push({

event : 'purchase_with_ID',

'purchase_ID' : '%leadid%',

'value' : '%total%'

});


And then in the google tag manager data layer, I'm getting this:


{

event: "purchase_with_ID",

gtm: {uniqueEventId: 153, start: 1753702147478},

purchase_ID: "%leadid%", //not the actual values :(

value: "%total%"

}


Can you please help me with the correct script? I hope someone in your team would know this.

photo
1

*In the first line above it's not supposed to be Google analytics, that's a typo. It's Google ads.

photo
1

It looks like you still need to add an event snippet to your conversion code box in IO > Analytics Tracking. This video shows the process.

photo
1

It's not added because I' m using Google Tag Manager to track conversions. What you guys have doesn't seem to give accurate results. My clients keep questioning my Meta ads results.


So if you can please answer my question on google tag manager, that would be great. If you are not conversant with it, that's also fine. In that case, could you please tell me at what stage in the purchase process do the %leadid% and %total% variables come into existence. What type of variables are they? How do I read them? If you can give me a general answer that's not just in the context of ads, that would be really helpful.

photo
photo
2

Adding the variable does not put that info in Google ads reports. At least, I've never been able to get that to work. ERS creates a new thank you url for each conversion, where IO does not. It's always done at the same URL website.com/io_contract


I've had to use google tag manager and google analytics to accurately track conversions.

photo
2

In the IO analytics tracking you'd put this in before the GTM script:

window.dataLayer = window.dataLayer || [];

dataLayer.push({

'lead_id': '%leadid%',

'total_value': '%total%'

});


Then In GTM:


  • Go to VariablesNewData Layer Variable
    Name: lead_id
    Name: total_value
  • Use in Tags Example for GA4:
    Event name: lead_submit
    Params:
    lead_id → {{lead_id}}
    value → {{total_value}}

photo
1

Thanks Joel. This looks good. I'll implement this. I'll get back to you if I run into issues.

photo
Leave a Comment
 
Attach a file