I am using the Cordova Facebook SDK plugin to log custom events, which I am able to track as expected in Facebook insights. I am now trying to track these same events (i.e. custom events) in Facebook Adverts as well. It seems possible to track certain predefined events, but it does not seem to be clear if there is a way to track custom events instead of the predefined ones.
Does anyone know if this is in fact possible?
It does not seem to be possible to use custom events, the solution as suggested to me by Facebook is to use one of the pre-defined events that is not used for anything else, and attribute that the event you are tracking.
Related
I am using the Elementor plugin in WordPress, and I'd like to know what events are triggered by this plugin while the preview page is loading.
So, I don't know how ( and if that's possible of course ) can listen to any triggered events and log them in the console.
At the moment I have tried several solutions I found on the internet, including the monitorEvents(document.body), but I took no valuable information as the common solutions on the internet are related to common events, like mouse events, keyboard events, elements load events, etc.
For example, from the Elementor plugin documentation I know that there is an event called elementor:init, but using all those methods available currently on the internet, I cannot catch that kind of event.
Keep in mind, I don't mind if it's possible to see the data emitted for the given event. I am happy with only see the event name.
Also, keep in mind that I need this information just for debugging purposes. So, if you have any alternative method that can let me access the events, will be very welcome. For example, let's say, if there's a kind of events registry in the window, and I can access it, then this could be also very helpfull.
So is there any way to check the triggered events using JavaScript?
How can I track the user in Google Analytics but only between two actions?
I can only use Javascript including jQuery.
I would like to have the engagement time of a user during a game (not during all the page view).
My problem is actually I have the engagement time of all actions.
I would like it from the game beginning moment to the end game moment.
I really want to do that in Google Analytics.
How it it possible ?
Thanks.
There's a few approaches you could use.
If this is all on a single page, you could use custom events: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide. Basically, you would need to add event handlers for "game beginning" and "game end", then log each as a custom event.
If you are trying to track them between a session, I'd try manually logging Google Analytics pages like this: https://developers.google.com/analytics/devguides/collection/analyticsjs/pages. When a user starts a game, store that somehow, either with a cookie/local storage/web call, etc, then on every page, check for that state, and if they are in the game, log the page.
This isn't exactly what GA normally does, so you'll have to do something custom like this.
I am trying to figure out the best way to attach unique
onclick="_gaq.push(['_trackEvent','content block','click','section1 arrow']);"
event tracking code on each arrow as well as the slide bullets. I've seen code that can be loaded AfterLoad, but i need the event tracking. Has anyone done this before or know how it could be properly implemented?
We have been facing strange concerns with google analytics. Its tracking few unconfigured events.
Event labels as Logs , Jobs, Job etc.
Are these events tracked by GA by default? Not sure only for few pages its tracking or it is added from client end.. Is there a way to overcome it?
I have checked all the pages and code for this events is absent.
It could be from someone messing around in the console, somebody using your account ID, or code that you've missed / conditionally triggers. Go into the Behavior > Events > Top Events, select your event label you question, and then in the report add a secondary dimension of "Page". This will show you all the pages that event label occurred on.
We have a site that uses both Omniture and Google Analytics. Ideally, we want to report in both suites on clicks to outbound links.
I'd like to do this the "right way," i.e. overcoming the race condition that occurs when requesting a site and the tracking pixel at the same time. See: http://www.gwotricks.com/test/2009/07/tracking-outbound-links-right-way.html
I probably wouldn't use the "onclick" attribute, instead binding the trackEvent to the link's click event.
Omniture's external link tracking overcomes the condition by hooking a 500ms delay into s.tl():
www. webmetric.org/white_paper/link_tracking.pdf
Has anyone tried doing both on the same site? Ideally I'd like to call both tracking pixels with an appropriate amount of time before the page executes, but I'm not a big enough Omniture buff to really have gone in-depth with their code and hook trackEvent in before the delay.
Use JavaScript DOM (or if you use it, jQuery) to bind the events and utilize the new asynchronous Google Analytics tracking code and you should be set.
Sample codes for JavaScript event binders are everywhere if you don't want to use jQuery.
Done this several times, never interfered and never had to use a timer.