I've searched around and can only find some very vague documentation on my question.
What I am wondering is:
Say you have a Mobile app that you are wanting to use mobile Google analytics to track users. Say its a e-commerce site and therefore you have a product screen named "products".
This is not ideal for someone that wants to find the top products on their mobile app...as the screen name is simply "Products".
Ideally you would want the actual product name in the screen views section of Google Analytics. The problem with this though is that it will look ugly across the top of the actual screen. Currently it says "products" across the top of the screen.
Now for the question:
Is there a way to pass the actual product name as the screen name but still present "Product" at the top of the screen when a user is viewing the app?
If so..I would love to know how so I can relay to my developer.
I think that google analytics cover this in their documentation on page view:
https://developers.google.com/analytics/devguides/collection/analyticsjs/pages
ga('send', 'pageview', {
'page': '/my-overridden-page?id=1',
'title': 'my overridden page' <---
});
Please let me know if you meant for something else.
You can set the screen name as described here. Specifically:
// Set screen name.
// Where path is a String representing the screen name.
t.setScreenName(path);
you can pass anything in the path variable and it can even be your product's name.
Related
I'm sorry in advance if this has already been posted, I did a search and haven't found anything similar.
I hope that someone has an answer to this, as I've been trying to figure out how to do this, but without any success.
The issue is that I need to inject (somehow) a custom metric into the Product details before it gets sent to be able to override a metric value on Google Analytics.
Edit: When viewing Product details on Shopify and having set Google Analytics on the backend of the shop, it sends pageview and detail action with product details. Before that point happends, I want to inject "metric1":0 to that addProduct event. In the picture below, you can see where I need to add it.
console details
ga("ec:addProduct", {
id: "G175000BZ1TH6171",
name: "Black Mask with Activated Bamboo Charcoal",
category: "",
quantity: 1,
price: "5.36",
brand: "Development Store Tests",
variant: null,
currency: "USD",
metric1: 0 })
so I need to add "metric1":0 after "currency" in that object. As far as I found out, Shopify embeds the Google Analytics library via its own manager so anything that I add to product.liquid is called after that which is a problem. Is there any way to do this?
Any kind of help would be useful. Thank you for replying!
Shopify takes the template like product.liquid (plus sections & includes) and turns that into an HTML string that gets sent to the browser. So if you know what you are doing, there is nothing stopping you from injecting whatever you want into the product details. You are free as a bird to convert yin to yang and back before the output goes to the browser. Since no analytics operate at that stage, you are safe there. So do your magic.
I have a link in the header of my website which takes users to the 'my account' page.
On a full screen desktop browser the link is is a small icon and the text 'my account' next to it (using ':)' to represent the icon btw) i.e.
:) my account.
On a mobile or tablet (smaller screen), only the icon appears and not the words. i.e.
:)
To conserve screen space.
I want to see whether I have put the my 'account link' in a good place. And whether people notice only the icon, when on mobile or tablet.
I plan to measure this by seeing how many times the 'my account' link is clicked and split up the clicks by device/os.
For example i might find, lots of people click the 'my account' link on the desktop site, but hardly anyone clicks it in comparison on IOS or any other mobile device e.g. android.
Thus showing it perhaps isn't as noticeable or is confusing when i only display the icon without the text on small screens.
Does anyone know how i can achieve this in tag manager/ google analytics.
I previously set up tags that track page views and virtual page views(using datalayer variables) so have some experience with tag manager V2.
(as an aside is there a way to tell whether a click has come from a mobile or tablet also?)
Thanks for any input!
The easier way to do this is to set a simple GTM tag with firing rule - click on the element you want to track (by class or id or whatever you wish), send the clicks data as events in Google Analytics and review the event with secondary dimension device category (which is mobile/desktop/tablet), or even device name/model. You can create a custom report for this to be easier to access everytime.
So - 1st - set a new GTM Tag - type Universal Analytics, Event, and fill the "Event category" as "my-account clicks" (just an example).
Look at the source code of your site, and see if the link have an id to use (for example - id="my-account"). Set a firing rule on clicks - some clicks - element id equals my-account. That's all actually, the clicks will send an event to GA. You can get some more info to be sent with the event, like setting event action - "Clicked on: {{url}}", to give you information on what page the user clicked the link. You can play also with the firing rule, but that's the basic setup.
Once you are done you can test it with Real-Time, under events.
Later, when you collect enough info - just go to events in your GA, under behavior, click on the "my-account clicks" and set a secondary dimension - device category.
As the title said, anyone know an ads plugin that can generate some kind of short code from ads script we enter, so I can use it anywhere I like? It's kinda like contact form 7 behavior.
Basically this is what I need:
1. I create the name/category of the ads (or some kind like that)
2. I type the ads script into that name/category.
3. the plugin then generate some kind of short code.
4. I can place those short code anywhere in the theme/file.
Most of ads plugins that I know doesn't freely let me place an ads, usually limited to before post/after post/certain page, etc.
WP Traffic Tools allows for widget placements, inline placements, and custom placements:
http://www.wptraffictools.com/placing-advertisements-in-header-footer-blocks-ad-management-plugin-tip/
Has anyone been able to use and see the Enhanced Link Attribution data in the In-Page Analytics interface of Google Analytics as per this document?
http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867
I've implemented this plugin and call and I can see the data being transferred to GA in my __utm.gif call however when viewing the In-page Analytics of the site, there is no difference. I still see the clicks being shown in an aggregated standard form.
I'm curious if there is a piece missing and I need to enable some Advanced Segment filters or something to view the information.
There is a thread on Google Groups where people shared similar experience with the implementation and my observations are the same:
http://productforums.google.com/forum/#!searchin/analytics/enhanced$20link$20attribution/analytics/-FuKG8ARAPY/t-crCmrGEHsJ
Any help or insight would be highly appreciated! Google seems to be on mute as usual.
To solve the problem, I had to manually put a unique 'id' attribute to each link tag pointing to the same URL that I wanted to distinguish. The scope is the page so you don't need to worry if the same IDs repeat on different pages, they just need to be unique per page.
I used a naming convention that allowed me to have unique IDs and not to worry about duplicity, unless there were two links to the same URL within a section (in my header I have the logo and the home navigation link go to the same URL).
For example, in my site template, all header links use id="header-...", all links in the footer use id="footer-...", and all links in the body of the page use id="body-...".
Example:
Home
<img src="/logo.gif" alt="logo" />
go to homepage
Homepage
This has made the percentage in GA show different values for the same URL, which solved the problem. Nothing else I tried in the settings, or initializing the enhanced attribution plugin, did not work.
This was just announced:
http://analytics.blogspot.co.il/2012/11/announcing-enhanced-link-attribution.html
You'll need to enable enhanced link attribution in the web property settings tab (within the Admin section), which is rolling out - you may see it only in a few days/weeks.
First : Go to Analytics. Click "Admin" in the top right for the selected web property. Property settings tab > In-Page Analytics heading > Use enhanced link attribution = Tick checkbox.
You might also want to narrow down the date window to the last few days when looking at the data (after allowing 24 hours for it to come in). If you don't do this, the link-attributed data might get diluted in the standard "last 30 days" window.
I have my application configured with google analystics. Its a e-learning application in which i have students and instructors.
I want to analysze the home page clicks for both student and instructor. The problem is the home page for student is also available in instructor but as some other page means same URL but different locations.
Now, i have added the script in ONLY student's page. By doing this though i have mapped the URL for an instructor page as well, will that effect the analysis? Will the data collected for students home page be affected by click on same link for instructor ?
If you have a single page that both students and instructors go to, then yes, your data will all show up under the same URL, and you will not be able to tell which views are from students and which are from instructors.
If you have the code ONLY populating when a student is on the page, then yes, this will affect your reports. You will be able to see how many students are viewing the page, but you will not know anything about the instructors viewing the page.
There are 2 things you can do with the GA code to get your numbers:
1) Report a different URL or page name depending on who is viewing. By default, GA reports the URL as the page name, but there is an optional 2nd argument to the _trackPageview call on your page that lets you specify what you want the page name to be. This will make your pages reports show two different entries.
2) Populate a custom variable on the page. This will show all traffic to the same page, but you will be able to use the custom variable to see how much of the traffic is from who.
The accepted answer was for the Classic GA snippet. For the latest GA snippet (Universal), you'd want to go with this.
ga('send', 'pageview', {
'page': '/my-overridden-page?id=1',
'title': 'my overridden page'
});
See Overriding Default Values in the GA Docs.