Is it possible to load Google Analytics dynamically by passing the tracking ID through the dataLayer? I have tried to push() the tracking ID and read out the variable in GTM but analytics doesn't seem to fire.
I have an ecommerce site and want to load the sellers tracking ID on different product pages. Ideally the seller would load their tracking ID via a dashboard instead of me having to add it manually to GTM.
Some pages e.g the cart complete page could have multiple analytics loaded as the customer may have purchased products with different sellers.
Any thoughts or pointers?
Related
I have a number of sites that use Gravity Forms for their contact forms. Most sites are working fine/as they should and track accurately.
However, I have one site that it's tracking at all. I can't even see the events firing in the 'Real Time' tab in Google Analytics UA (GA UA). Other sites that track correctly in GA UA use text confirmation within Gravity Forms. This displays a script (as per most guides out there like this one) with the form ID which fires the event and gives the form ID to GA UA.
The site I'm having issues with uses a redirect confirmation (ties into a third-party CRM and then pushes back to a thank you page). I can't seem to set up goals (custom events or destination goals) to track this and all of the field mapping is correct, the events are just not firing.
I'm using the Gravity Forms Analytics add-on -- can anyone advise? Is there a simple way that I'm missing or a workaround to make this work?
I've tried using Google Tag Manager (GTM) to create the event and push through to GA UA with no luck.
Any advice would be appreciated!
I have created 2 events with same name 'purchase' for universal analytics and for GA4 but the monetisation report is not correct in both the dashboards.
How can I create purchase event for both Universal analytics and GA4 and show the correct transactions in the report?
Also Can I create custom events like order tracking with product(item) parameter like purchase and create a custom report with all the parameters in the GA account?
Are you using a datalayer push for the ecommerce data that you want to display in your Analytics?
Or are you using dynamic values that you scrape from your website with custom javascript variables?
In any case, you have to include the correct structure in an event for the correct report to work.
I would recommend building a correctly formatted datalayer.push event that corresponds to GA4 standards.
For example:
How a purchase event should look like: https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtm#make_a_purchase_or_issue_a_refund
Required and optional event parameters: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag
Then you can use a GA4 event tag to capture ecommerce data from the datalayer, and the UA tag has a checkbox that enables it to process GA4 data found in the datalayer.
This approach means that you will only have to support one type of Analytics structure on your website while you get ecommerce reports for both platforms.
We have a web site that already has GA page tracking and Goals set up to track conversion based on URLs, and these are working fine via GTM & GA.
We want to introduce a new product and track it via a separate goal/funnel.
Problem is the pages stay the same, so there isn't any change in the URL to differentiate when a customer has selected this product.
Our flow is as follows:
/Price
/Up-sell
/Summary
/Payment
/PaymentComplete
The customer selects the product on the Price page.
In order to get the Goals to track for this new product I've created a series of virtual page views that are triggered when the product is clicked and persist on subsequent pages.
So the URLs within GA now look like:
/Virtual/Price
/Virtual/Up-sell
/Virtual/Summary
/Virtual/Payment
/Virtual/PaymentComplete
I can see the page views within GA fine.
When I create a new goal I base it off the /Virtual/ urls.
However, because GA is firing on each page by default I effectively get two URLs in GA the original URL, e.g. /Price AND /Virtual/Price this then causes issues tracking between pages in the funnel & goal.
What am I doing wrong here?
How does everyone else manage this scenario?
You can add exceptions to the GA trigger in GTM, add the URLs that you don’t want. Or, don’t fire the trigger that sends the virtual page.
Lets say I have 100 customers that bought a website from me. In the footer of their websites I have the text "Website developed by:" followed by a link that points to my company website. In Google Analytics for my company website these referrals will show up with the customers URL as source, and "referral" as medium. I would like all of the referrals from my 100 customer websites to be grouped, so that i can view the total metrics together. I have tried using utm_source="Customer Website" on the referral links, but the utm_source overwrites the default source (that is the customer website URL) so that there is no way for me to separate the different websites.
How can I set up this in Google Analytics so that I can both view all of the referrals from customer websites together and separately?
You can use utm_campaign=Customer-Referral and then see all this data under one campaign on Google Analytics.
You can direct the traffic to the destination page but with a dummy query string parameter such as www.example.com?ref=client, and then see the traffic that is directed to this specific page on Google Analytics.
Based on the ref, you can inject a user-level custom dimension that will show you data of that specific group. What you should add is ga('set', 'dimension1', 'Client Referral');
Add it to your tracking code before ga('send', 'pageview'); You need to send this data only once, at the first page view. You can read more about it here: https://developers.google.com/analytics/devguides/platform/customdimsmets
(note: I used dimension1 assuming that you don't have existing custom dimensions. If you already using slot no. 1, update it to another slot).
I'm new to google analytics and I'm a little confused on how to get an unpaid campaign up and runnning. I'm making the campaign in order to track links to a page from different sources (website buttons, emails, newsletters, etc.). What I'm trying to do is set something up in GA so that I can track how people are getting to a specified page. I've been reading this as well:
https://support.google.com/analytics/answer/1033863?hl=en&ref_topic=1032998
Do I have to create the campaign in google analytics (and if so where) or do I just apply the appropriate campaign/tracking tags to the links I need tracked and it automatically creates it? Also, how would this work with emails?
Thanks for any help!
Essentially, you will build the campaign tracking URL in URL Builder and put those links in your email, newsletter, etc. Once visitors start to click the links via the email, a campaign will be created under Acquisition > Campaigns.
You do not need create campaigns at Google Analytics: when you tagged campaign manually or at URL builder, your campaign data(source name,campaigh name and others) will be categorized by Google Analytics automatically.
GA parses tags at your links and save data about you campaigns.