We are trying to track the users acquisition data for a goal before the form submission is submitted and taken off the site. I once had it working back in july where a general page view trigger would happen BEFORE the event of the form submission was fired. This used to bring us the data inside of the acquisition overview in analytics letting us know social, paid etc. Right around july 20th, the function had stopped working all together and the data all (and still is) coming through as direct. Nothing really had been changed that was directly connected to the BEFORE fire.
Ive found other guides on tracking pardot and such but there was nothing that was able to send the data before it left getting the information before its sent off.
Does anyone have any idea why something like this would stop working if nothing on the pardot side or the triggers had changed? Or has anyone been able to achieve what im trying to do without the mess of chaining triggers?
Related
Looking more for some fresh ideas to help me troubleshoot the below problem than solving any coding issues (which may come next).
Creating a similar site to an existing one that uses all previous GA tech (analytics.js, _gaq.push, Google_Service_AnalyticsReporting_ReportRequest(), etc) and provides all the easy data needed for my simple GA reports (i.e. page views by date and location).
However, not quite ready to bite off the whole enchilada (GTAGMgr, GA4, and such) so created dual Properties (UA and GA) as many forums have recommended when making the transition.
Setup the website same as the active [UA] site but using the gtag.js (per the Property Tracking Code snippet provided in ADMIN) vs the analytics.js code. Created View(s), new Service Account for the "user", an API Map Key for the Google Map Charts, and any other pieces I could find.
Have the GTAG.JS setup on each page and added any special page tracking via gtag('event', 'page view', {...}) but letting the default page view still occur as well.
Page view hits are coming through as expected EXCEPT the page views locations (City, State, Country, Region) are not being populated. All that comes thru is the "not set" for any location. Ironically, the old analytics.js code was still active initially and location data was being populated.
Would think if gtag.js is collecting standard page view info for the configured Property, that location data would be there as well. Am sure it is but possibly the older getReport calls need tweaking. No doubt I probably have a something not quite right but if REALTIME data shows usage, page views, etc. AND my GA Report calls are working, would think location data would be there too.
Any brainstorming ideas would be appreciated.
Thank you,
LarryG
ANSWER ... the EZ Button ... my code and calls were correct using old and [semi] new way. The majority of the problems were McAfee VPN kicking in. It is set to turn on with reboot and I do not always remember to turn it off. The first obvious clue was the realtime location for my actions were not where they were supposed to be. Also, appears Google API PHP Client has some issues with PHP7.4FastCGI.
So if you took the time to read ... check your VPN settings if you are getting an abnormal amount of NOT SETS in your GA data.
Begs the question ... with the increase in companies providing VPN services out of the box, that renders some of the tracking a moot point.
LarryG
I have a website that sells products and I'm using google analytics to know some statistics about the website. Sometimes, errors happens for various reasons and purchases doesn't go through. You then have to refresh the page and try again, then everything works. The website displays the message telling the user to refresh and try again. I'm curious how many people actually do that. My question is, is it possible to know what users do when this error happens? Do they refresh and try again? Do they close the tab or do they do something else?
The question is quite broad at this moment, but there are a couple of improvements to your measurement setup, that can help you to investigate this customer behavior.
What I would do, is to implement an event tracking to indicate, that this error has occurred. You can find details about event tracking in this guide. Although I suppose, that your users are not likely to enter the website at this page, it might be a good practice to set the non-interaction flag of the event, as it is not actually generated by a user interaction.
I'd also create tracking for page reload, either by creating an other event for this, or by adding -reload suffix to these repeated pageview URLs. You can find good resources for this on SO as well, e.g. this one.
If you have a special URL for this error page (e.g. purchase-error.html instead of purchase-success.html), it is also easy to track the exit rate specific to this page.
Besides of Google Analytics, you might also want to set up heatmap or screen recording tools to understand this behavior. Hotjar, Lucky Orange are a few examples. (No affiliation.)
I will start with describing what I am trying to achieve, in order to avoid x-y problem. And if the solution I try to apply is not the best one, please, tell me a different one.
I have a website. There is an audio player on it. I would like to track in my GA how many users started the audio, how many users listened 25% of it, how many users listened 50% of it and so on. I can access the needed information (e.g. user reached 25%, so it is time to tell about this to GA through GTM) in client-side JavaScript, the question is only about setting up the GTM and GA correctly.
So, now that I described my intentions, let me show what I was able to do so far.
1 I created a custom metric with Hit scope in GA.
2 I created a tag which increments the metric created in the 1.
3 I created a custom event in GTM. When user starts playing the audio I fire the event with the help of dataLayer. And the event fires the tag which I created in 2.
4 I created a custom dashboard in GA to track how many users started the sound.
And now I am stuck. I get the needed data from my website to GTM. I trigger the tag which should send the data over to GA. I have the needed metric and dashboard set up in GA. And now I would expect the widget in my custom dashboard in GA to show that the audio was started, but it does not happen.
I am very new to GA and GTM and may not understand some concepts, as a result I may miss some necessary for troubleshooting information. I will gladly provide it if you need it.
Thank you (y).
I have been searching for a solution to this problem for a while and surprised it doesn't exist. I have a low traffic site but a high conversion/acquisition cost per customer.
So when a customer hits a certain page on my website, I want to be notified via SMS. So I can instigate a live chat and get them converting.
I have tried an option with Google Analytics, but that seems to have a delay. The live chat platforms do not seem to have this feature.
How could this type of action be achieved?
David here, from the Zapier Platform team.
That certainly might be possible! I haven't tried anything like that, but I have an idea that might work (albeit with some caveats).
First, you'll want to trigger when someone is on the site. For that, I'd send a webbhook to Zapier from the front-end of the page. If you wanted to only trigger if someone is there for a few seconds (not a bounce) you can put the outgoing webhook in a setTimeout. If you have the following code:
fetch('https://hooks.zapier.com/my/hook/path')
It will contact Zapier. From there, you can use SMS by Zapier to text yourself. You could also pass along relevant data to be used in the text, if you wanted.
All that said, it seems like live-chat apps (something like Olark) will make it seem like you're online always and can forward incoming messages to you somewhere you can respond right away. I haven't tried any, but I can't imagine yours is a unique problem.
Before I explain the issue it's worth noting at the start I do not have access to any html or server side code.
I'm tagging a website for a client, their website is some what similar to an ecommerce platform, there are 3 stages the user goes through before purchasing which are as follows:
Step 1 - Choose items from a table and click add button, then press submit which takes them to Step 2
Step 2 - User can modify the quantity of each product they have selected to purchase or remove the product once finished they press submit which takes them to step 3
Step 3 - On this page the user can only submit the order, once they've submitted they're taken to a confirmation page - saying thanks order received etc
The issue I'm experiencing and trying to solve is this:
I'm setting up an ecommerce purchase event, inside this event I'm trying to pass the transaction information, along with the product information.
The transaction / product information is only located on Step 3. This event I'm setting up needs to fire on the confirmation page as this is when we know the submission has taken place and the order has been received.
I've gone through documentation around ecommerce events and I'm yet to find if any, anything that can help solve the issue. I was hoping to find a solution whereby I can build the ecommerce event on Step 3 and on the confirmation page fire the event. Any suggestions?
I personally would try to review the requirements, the average transaction product quantity and then decide to go with JavaScript client-side code(implemented from GTM) to store the required product data on a cookie or the localstorage. Be careful though these solutions come with many limitations.
Cookies on mobile devices have smaller size restrictions for example.
The best way in my opinion is to communicate with the server-side developers. Because by doing this in the frontend you are risking many inconsistencies with the real data. Frontend code introduces browser compatibility issues, turned-off javascript and many more.
Also until you find a more suitable approach, you can scrape the minimum required information for the products and transaction, directly from the order-complete page. This could be done with pure-js or jQuery if it is available.