How to Track lazy loading product pages in Google Analytics - google-analytics

I am in the process of setting up enhanced Ecommerce for GA and have had a few requests of additional of what else the client would like to see in their reports. Once of which is;
"We no longer have paginated pages,instead, the pages automatically
load more products when a user gets to the bottom of the page. How can I track how many times the does this?"
Is there a way (using event tracking maybe?), that we can track every time a the page reloads new products as the URL is no longer changing. In order to compare with data from before this functionality change, it would be useful to see what the equivalent number of pages a user is seeing, ie, how many times the page adds new products to the page. Any code examples would be really helpful too.
Thanks,
Roxi

Related

GTM - Virtual page views & Goals

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.

Google Analytics Content Experiments: Session Based or User-Based?

I've set up a few experiments with Google Analytics using its experiment interface and everything seems to be working fine, but I haven't been able to find the answer to how Google Analytics attributes reached goal to the variations, is the attribution session-based or user-based?
Here's a scenario:
User visits one of the page variations included in the experiment during a session, does something else on the website and closes it.
The next day the user comes back, opens my website in the same browser and completes the goal (without visiting the experiment variation page)
The question is: will the reached goal still be attributed to the variation page the user saw during the previous session or will it be discarded and won't be attributed to any of the variations, since the user didn't see the variation in the same session he completed the goal.
The reached goal should still be attributed to the variation page:
A user is considered part of an experiment once he or she has seen the
experiment page. For example, if a user sees the experiment page, then
comes back the next day, the second visit is counted, even if the user
does not view the experiment page again.
https://support.google.com/analytics/answer/6112437#

Google Analytics Tracking Conversions with vendor data and custom campaigns

Please help me understand this. I have a client for whom we created a sweepstakes "mini site". Traffic was generated through banner ads, eBlasts, and newsletters. For the banner ads, I created custom urls, i.e. www.somewhere.com?utm_source=yahoo?utm_campaign=abc to track the traffic to the landing page per vendor/banner. this works just fine.
The entrant visits the page, signs up for the sweepstakes, has as double opt in email process for verification. All of my entering traffic to the landing page is tracking fine, and is properly broken down by utm_source and utm_campaign.
Some of the vendors had me place tracking pixels on the confirmation page for conversion statistics. The only info I have placed for internal tracking on the confirmation page is the GA tracking code.
I have been told to create tracking pixels to track the individual vendor conversions. Is this possible without the originating pixel data from the vendor? I am new to tracking pixels, but my understanding is that I need some information from the vendor in order to write the code for the pixel. Am I wrong?
I can't understand how we can place a tracking pixel on our end without at least campaign name or data from the vendor's tracking pixel that they placed on the page containing our banner ads.
What am I missing here? How can I actually separate the conversion traffic from the different sources when everyone receives the same double-opt-in email?
Please ask me to clarify if I am not being clear. Thanks in advance for reading my question.
There are two things you are trying to track here. One is Campaigns: Campaigns are how you measure the effectiveness of techniques to bring users to your site.
The other thing you are tracking is Events - this is what users are doing once they arrive at your site. If you want to track individual vendor conversions, you should add an onclick handler to either the submit button, or link that you are calling a "conversion"
For example:
Your link here
If you are adding the push to a form submit, you might want to have that push happen on the pageload of the success page, rather than the onClick of the submit (otherwise it will track the event, and it might not have actually happened due to form validation errors for example)

Google analytics to track impressions/views?

I have a site that lists business listings from a database. On each page you can do different things such as forward it to a friend, print the page etc. My question is could I use google analytics to track impressions and views for each listing? So if I showed the top 10 listings on the home page I want to track each listing as an impression since its being showed, then if they click one of the links to view the business listing it tracks it as a view. Then on the business listing details page if they do any of the actions such as forward to a friend or print the page I want to track that as well.
For tracking views/clicks Im assuming I would need to use setPageView passing something like setPageView('/listing/12345') correct? I dont know how to track it for impressions though. Then on the listing details page to track if they printed it etc Im assuming I would track it as an event? Such as trackEvent('listing', 'Print') if that is what I need to do for event how does it associate with the page tracking so that I could see how many times someone printed the listing page for /listings/12345?
No need to create fake page views. Google Analytics has a feature called Event Tracking, which is described in the Event Tracking Guide. The guide has an illustrative example;
A simple example illustrates how you might use the Event Tracking method
to record user interaction with a video Play link on your page. It
assumes that pageTracker is the name used for your tracking object.
Play
In this scenario, the reports for Events would display Videos as the Category,
Play as the Action, and Baby's First Birthday as the Label.
In your case, you would track Views and Clicks using the Event Tracking feature. You'd have to decide on how you'd want Actions, Categories and Labels set up to match your data. You might want package types (Gold, Silver etc) as Categories or Labels, for example.
This question and its answers are similar to your scenario.

tracking users with google analytics after they leave my domain to make a purchase and come back

I would like to track where users originally came from when they make a purchase on my site so I know which keywords are more profitable and which websites are best for advertising.
an example is a user is on my site with my google analytics tracking code which has details of where they came from, and then decides to upgrade. they leave my domain to go to my biller (2checkout) complete the purchase and return to my thank you page.
I have transaction code and analytics code on my thank you page and the transactions are showing up with the correct product/amounts in GA however there is no other data and in my reports the referring url is always my biller or a credit card companies authorisation page.
i can manually connect which customer is which by saving their referring data when they first come to the site and then matching it up after they make a sale, but I would like it to show up in my google adwords / analytics account where it is easier to manipulate the data and see trends.
if anyone can help me with this annoying issue I would be vbery greatful, but I fear I may end up living off reports I create and then matching them up with adwords manually :/
One thing you can do is have a click event trigger a custom variable. When the user clicks on whatever link that takes them to your biller, have the custom variable trigger with the information you want to carry over (like the current page URL, some campaign name, whatever). Specify the custom variable's scope as Session or Visit so that it get associated with the thank you page.
http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
An alternative is to do campaign tracking:
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55540
That is more or less the same principle as the first suggestion, but with using specified URL parameters. Depending on how your pages are actually coded, you may need to push a virtual page view with the campaign code(s):
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55521

Resources