Submitting GA UTM Variables to Pardot via Form Handler - google-analytics

Has anyone ever managed to get GA UTM tracking variables into Pardot via the API? If you use the iframe, then all of the GA variables are picked up automatically, but when you submit directly via a form handler, the information doesn't get set (presumably because it can't read the cookies).
Pardot support seem to think this can be done via the API by assigning visitors and prospects, but the documentation appears to be skimpy/non-existent. Has anyone ever had to do this and could point me in the right direction of where I should be looking in the docs or the API?

Related

Use hits sent by GA4 in Google Tag Manager to get events parameters

does anyone know if it is possible to use the parameters of an event sent with the hits of the event itself from Google Analytics with the Google Tag Manager?
page_view hit details
As you can see from this screenshot, the page_view event includes many parameters, such as Page Title, Session Engagement, and many others that are not natively tracked by GTM.
For example, if I wanted to get the value of the "seg" parameter via GTM, how can I do it?
Thank you
I tried using a custom JavaScript but I don't know how to use it
You cannot. GTM doesn't give you the ability to monitor network requests. Even though you may be sending the request via GTM to GA, it's not going to show you the request details or the response.

Is there any API call or any kind of feedback to know whether data is actually sent through google analytics collect endpoint?

I have settled my google tag manager as from the guide.
I have got in place a page that redirect just after the tag gtm-load is collected into the dataLayer. It's actually a "transition" page that should redirect instantaneously.
In this way I make sure google-analytics.com/r/collect is called, as I can see from the network ta of my browser, seems the only way to do so for an "instant redirect page".
However I need to test it from the back-end side.
Is there any way to have a feedback from Google Analytics about the data is actually sent? For example something like google-analytics.com/get/data/lastEntry, so that I can use a restAPI to check it out?
As far as I know, google analytics provide only metrics through a web page, and no actual data sent to.
Moreover there are some Rest API here but they are only for configuration purpose.
you might pass a JavaScript function as a hitCallback parameter of analytics send command and it will be called right after hit data were sent:
https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#hitCallback
Here's an example of how to use it with GTM alongside another useful feature of eventcallback
https://www.simoahava.com/gtm-tips/hitcallback-eventcallback/
Hope this helps.
There is a realtime API in Google Analytics, so what I have done for testing is to call my test URL with utm campaign parameters attached. Then I made a call to the realtime API and filtered by my custom campaign.
The realtime API is fairly limited (no session based values, obviously, you cannot test custom dimensions etc), but at least this tells you if your hit has registered in GA.

GA tracking with additional URL parameters

Something I cannot find information about in the GA tracking documentation of branch.io is how to attach parameters other than the default GA ones to a link?
For example on top of UTM tracking our company uses custom URL parameters like ?acc=amex in order to provide special access pages on web that triggers certain things. Since in Branch we only have "Channel" "Campaign" and "tags" then I'm wondering would branch pass those custom link parameters and how?
We do pass custom link parameters to Google Analytics and this requires a custom webhook implementation. As this requires more information from your end, I would request you to send an email to integrations#branch.io to take this forward.

In google analytics, how can I pass a device type and model through ecommerce tracking?

Basically, we use affiliate products. When we get a return call from their servers saying we have a sale, we want to send that information back into GA. Right now we can do that just by loading the page with ecommerce tracking and tacking on UTM parameters in the link based on the user who purchased...
One big thing we want to do though is actually send back the device information the user purchased with back to analytics. we capture it in our custom CRM, I'm just not sure how we can pass it back to analytics. using valuetrack parameters in the URL doesn't work, and i'm not sure how to modify the ecommerce code to figure this out.
Any help is appreciated!!!

What is utmu parameter in google analytics __utm.gif request?

I am trying to make the google analytic __utm.gif request using php. I have broken all the variables and the only one which I don't know about is utmu parameter. It is not documented anywhere.
When I see a pageview tracking request it is appended to the end of request as &utmu=qB~
While doing ecommerce tracking it is appended as &utmu=qBAL~
Please help me with this.
It is a bitmap of all of the methods used to build the request.
Source: http://glucik.blogspot.com/2011/02/utmu-google-analytics-request-parameter.html
utmu doesn't actually contain anything of external meaning. Google uses it to store some internal values that help them improve ga.js. It's not required to make any functionality work, so, your PHP code doesn't need to account for it.
However, you should know there are already a few long-standing PHP-based Google Analytics projects, like Server Side Google Analytics (SSGA), as well as the semi-official Google Analytics for Mobile PHP and PHPGA.

Resources