Anyone knows if its possible to manipulate page_location getting send to Google Ads? I did append gcs parameter to page_location and made a transformation, and it does show in the enriched event data, but looking in the network tab when making a conversion to g ads, it doesnt show
Yes, it should be possible.
What do you see in the outgoing requests Google Ads tags produce?
The page_location
value is put in the url
parameter in these requests.
Hey @giovaniortolani
I just took a look, and seeing this in the outgoing request during preview mode and also in the network i also see my gcs and transcationid appended to the url, but still in G ads interface i see nothing
Hmm but i also see multiple request to g ads in network tab, 1 with my modified url and 1 without it.
I only have G ads serverside on this account.
Last screenshot of url is from the outgoing request seen in preview mode
It looks like every piece of data is being sent correctly, except for this one conversion that is not sending the correct URL. I cannot point out exactly what it can be without debugging, but I would recommend checking the request chain to see which code is modifying this request.
May I ask you what do you intend to do with these modified URLs in Google Ads? The webpages shown in the Conversion Actions are know to be quite unreliable, as it doesn’t provide the most accurate information.
Furthermore, I believe that Google strips out the query parameter from the URLs shown on that page, even though they receive it. This is probably to prevent PII from showing up. I have just checked a conversion that is triggered in a lot of pages on a website (and is certainly triggered when there are query parameters on the URL), and this report doesn’t display any query parameter.
Thank you! I might dig deeper, or just drop it - its not a big deal really.
I just wanted to add the gcs parameter, so i can see how much of our data in G ads are modelled.
Something completely unrelated: Im sending a webhook from shopify to our server which i fire a standard purchase event with to Meta. Im wondering if its OK to use the action source as website since its a generic webhook from shopify, or should i change it?
Thank you! I might dig deeper, or just drop it - its not a big deal really.
I just wanted to add the gcs parameter, so i can see how much of our data in G ads are modelled.
Hmmm, cool.
There’s the Custom Variables feature that might be exactly what you’re looking for.
Just add the gcs
value as an event parameter like any other in the Event Data. The Google Ads conversion tag will pick that up and put it in the data
parameter. Then, you would just have to activate the Custom Variable and add it to your Google Ads reports. It’s pretty straightforward.
Something completely unrelated: Im sending a webhook from shopify to our server which i fire a standard purchase event with to Meta. Im wondering if its OK to use the action source as website since its a generic webhook from shopify, or should i change it?
I would use the Website
, as I imagine it’s something related to something that happened on your Shopify store.
You can check a more detailed description of each one of those Action Sources and choose what fits best in the official documentation. Search for “action_source”.