Create Google Analytics event with R - r

I'm trying to track how people use my shiny app with google analytics.
for that i strart with a reproducible exemple i found here
the tracking work for classic messure but the two event "button" and "click" are nowhere to be found in google analytics so I assume that doesn't work that way anymore.
I also try GALOGGER same result user tracker works but not sepcial event. Is any one have a solution to creat event into google analytics with r ? thank you

Related

Google Analytics configured with GTM showing two pageviews. But when I check GTM assistant it only shows one

I have configured Google Analytics using GTM in my single-page application build in next.js. In order to check the pageviews I push a custom event to the data layer called "pageview" each time a user change to a new page.
In GTM I have created a trigger that looks for the "pageview" custom event and fires up the google-analytics tag.
Everything seems to be working properly but when I enter the debugview of google analytics and I change from one page to another 2 paweviews are recorded instead of one.
I have check GTM assistant and the tag is not firing twice, so I do not know where the problem might be.
This is messing my stats as I have twice more pageviews than in reality.
Here in the photos i upload you can see the tag. In the history and message no tags are getting fired
While this is what happens in google analytics (both page_views contain the exact same parameters (same page_refererr, page_location...):
Here is the implementation insine next.js. Basically I call the function GTMPageView() each time a route is change. GTMPageView() is the function that pushes "pageview" into the datalayer
I really appreciate any kind of help as I have been hours trying to solve the problem and I cant get to the end of it.

GTM + Gravity Forms Goal tracking in Google Analytics

I have a Gravity Form with a text confirmation page, not a redirect confirmation. I would like to track this form through Google Tag Manager to display a goal conversion in Google Analytics (Universal Analytics).
I've followed the steps here: http://www.notesonclick.com/blog/gravity-form-event-tracking-via-tag-manager/
No conversions are being recorded. However when using GTM-debug mode, all the triggers are firing, even the gform.submit.success tag is being fired after clicking the submit button.
Could someone please help?
We've had the same issue. The only way we've been able to get GTM to record conversions is to remove validation. We'd rather it validate, but we haven't found any other workarounds.
I have implement that code in multiple site and it is working fine, Since you are not getting conversion then there might be issue with form Goal Creation in google analytics. or some time i have noticed this things happening when google analytics have been implement directly on the site and event tracking setup through tag manager..
if you still need some more help leave comment in comment box of same blog
I saw the excellent and elegant solution by Dinesh but was not able to implement it on the site I was working with. I put a hack together that work correctly. For detailed instructions, please see here.
http://www.albanyanalytics.com/2018/03/gravity-form-tracking-with-google-tag.html

Google Adwords Conversion in Lightbox Popup?

Trying to figure out how this can be accomplished... =/
The regular Google Analytics code doesn't track in a javascript lightbox popup, so we had to use a Analytics custom event for tracking.
I believe we might be running into the same problem now with our Google Adwords conversion pixel that we're trying to add into another lightbox popup after the ones with Event Tracking on them.
I can't find any other topics anywhere on this subject. Is this possible or able to be done using another method similar to how Event Tracking can be used with Analytics?
It's certainly doable with some Javascript voodoo, but a much easier solution would probably be to set up your Analytics event (that you already have) as a goal, and then import this goal as a conversion into Adwords. Note that this solution requires you to link your Analytics and Adwords accounts.

Google Analytics counter?

I have read a lot of places that you can count using Google Analytics. I already use it on my site to track visitors.
How would I track how many people have clicked a spesific button and show the number of times it has been clicked on another page?
You want to implement Event Tracking. As far as displaying the results on another page, Google doesn't support showing charts/graphics outside of the Google Analytics site. But you could find 3rd party app developers on the Apps Gallery which do this. I for one have created EmbeddedAnalytics for precisely this purpose. And we also support dimension filtering so you could create a chart to show your specific action clicks.
You can learn about the Google Analytics API at https://developers.google.com/analytics/devguides/reporting/core/v3/reference and even try it out interactively using http://ga-dev-tools.appspot.com/explorer/
If you use Drupal you can easily install module Google Analytics Counter that will automatically fetch and display pageviews collected by Google Analytics. Other CMS certainly have similar plugins.

Google Analytics scope question

I'm studying GA and and want to know if it is possible to save any custom information. For example I have a lot of checkboxes on the page and want to know checked statistics. I mean checks count for each checkbox separately. I see it in the following way: before postback I'm getting all checks information and send it to GA :).
What do you think?
You can use the Google Analytics javascript API to send this information to google, possibly as an event. This can happen whenever you choose, such as before form submission.
You can make events to each of the checkboxes, individualize them if you want, and see the results in "event tracking" in contents.
More info about event tracking from
google analytics docs

Resources