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?
Related
Google Pagespeed is annoying me and docking me points for 'Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance.'
OK, simple enough, add {passive:true} to every time you have an event on scroll! But I'm using libraries and WP Plugins also use their own JS so I wont be able to change those.
So is there a way to add, with JS that every time a scroll event is called, that it will always be passive?
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?
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.
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.