How can I view disqus comment text in google analytics? - google-analytics

I used rails to develop my website, and I've installed disqus and google analytics.
I would like to be able to view the content of comments made via disqus in my google analytics dashboard. Is this possible?
I've only been able to see how many 'likes' and 'comments' in the dashboard, but not the actual content.
Thanks.

If you want to record the comments, you will need to capture them in a Custom Variable to send to GA. However, note that
There is a character limit for Custom Variable values (a 128 char
limit shared between all custom var names and values on a given
request).
Tracking stuff like this isn't really what GA (or other tracking
tools) is for, and could possibly even violate Google's ToS,
depending on the contents of the comments

Related

Implementing User-ID With Google Tag Manager

I have added Google Tag Manager to our site, and using the data layer inserted several custom dimensions, including 'user_id'
Data Layer with user_id shown
The Google Analytics variable in Tag Manager is configured to pass these data layer variables into the coresponding dimensions:
Tag Manager Variable & Dimensions in Analytics
I know this is working as I am able to add this as a secondary dimension in Analytics when viewing reports:
Analytics with Dimension Shown
However, the user view that is created when I have set up the User-Id isnt showing anything:
Creating the User View
We installed Tag Manager using the recommended steps:
Installation of Tag Manager
Do we also need to add the 'Global Site Tag Tracking Code'?
How to Implement the User-ID in your tracking code
If not, what am I doing wrong?
You're actually REALLY close. You actually don't need to create the custom dimension.
The correct way is to set the userId field in your GA tag (I did it through a GA variable so it is applied everywhere).
Yes, that is exactly correct (what #XTOTHEL answered above), but for those who are reading this, I found these two blog posts helpful (esp if you are using GTM):
GA UA: https://www.analyticsmania.com/post/google-analytics-user-id-with-google-tag-manager/
GA4: https://www.analyticsmania.com/post/google-analytics-4-user-id/
And of course, the GA docs: https://support.google.com/tagmanager/answer/4565987?hl=en

How do I program a dimension that captures a logged-in user in WordPress with Google Analytics?

My problem is this: I'd like to differentiate Google Analytics between logged in WordPress users (people editing the site, editors) and people visiting the site (visitors).
I read through this article: https://css-tricks.com/learning-use-google-analytics-effectively-codepen/
It provides a basic explanation of how to add a dimension to GA. What I don't get is how to make line of code to add to my WordPress templates that will tell Google which users are logged in and which ones aren't.
If you can help, thank you!
The easiest way to do this is to populate the datalayer of your website with a boolean value (true or false) that determines whether someone is logged in or not. You can ask one of your devs to do this, but since you're using Wordpress there are quite some plugins that are able to do this (make sure you check the safety of these plugins).
After you've done that, you can now actually target these datalayer values in Google Tag Manager and create a custom dimension that you can in turn use for your filters and/or segments in Google Analytics. This guy explains it quite well on how to do this step by step.

Google Tag Manager. Tracking link click through a funnel

I had a question about Google Tag Manager. (I also felt bad for having the IT guy fix my mistakes on my simple click tag)
I wanted to track when a user enters a specific url when they click a link button on the homepage.
This is what it looks like
Image
This is my idea on what the Tag and Trigger should look like
Image
But I'm worried about having the trigger be fired when there is another page in the funnel
Also if the only way to do this is in the goal feature of GA that is good to know also. (I currently don't have the permissions here)
Thanks for responses
While it is difficult to achieve exactly what you're describing (it would involve storing data in cookies and then using these cookies to conditionally fire tags), there is a better way to achieve what I assume is your ultimate objective: an analysis of the shopping funnel.
Specifically, the Google Analytics enhanced ecommerce module has a dedicated report (the Conversions > Ecommerce > Shopping Behavior report) that shows you exactly this. It shows you the number of sessions for each stage of your shopping experience (product view -> add to cart -> checkout -> purchase) along with drop-off rates and volumes between each of these steps.
It is a little bit more involved to implement enhanced ecommerce but the final result is definitely worth it for an ecommerce business. Instructions for implementation of enhanced ecommerce (using Google Tag Manager) can be found here.
GTM is hit based without any notion of persistence. So by default this will not work.
You would need a custom HTML tag with a javascript function that sets a cookie, or writes a value to localstorage, when the button is clicked.
Then on your destination page you can check if the cookie exists and fire the tag accordingly.
I don't think the goal feature in GA can do that, either. A goal is registered when you hit a destination URL or event, you cannot specify conditions other than the destination.

Enhanced link attribution in Google Analytics In-page Analytics not working

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.

How to make an analytics for my website members page?

I have a website where members can create their own page. Current I have a script that tracks how many views the member page was viewed. But I would like to display more information like unique visits, return visits etc.
Is there any analytic software that could let me do that?
I am guessing you want to display on each member page some analytics information.
You didn't specify what language you used to build the site.
Here's a PHP API class to query a Google Analytics account.
Also, check this and this for documentation about the API. You can retrieve analytics data / metrics in many ways that the default Analytics reports don't show.
Now you need to think of a way to differentiate between member pages in Analytics (use custom variables in your tracking code, maybe).
Hope this helps.
If you don't want to deal with getting in to the Google Analytics API, I suggest you check out some of the solutions on the Google Analytics Application Gallery. I for one work with embeddedanalytics. While we don't have it very well published on our site, we have done a number of CMS type implementations, allowing a single implementation to be used by many different users of the site. The differentiation could be based on page path or some specific custom variable. Visit us and contact us directly if you are interested.
(disclosure - I work with embeddedanalytics)

Resources