[Plugin: Google Analytics for WordPress] Could a filter be added for custom outbound tracking?
-
Hi Yoast
Would it be possible for a filter to be made available so that additional outbound links (i.e. ones that are not in the content or comments, etc) can be tracked as events?
e.g. I have banner ads at the top of a website, it would be great if I could do something like:
echo apply_filters( 'google_analytics', '<a href="blah.com"><img src="blah.jpg"></a>', 'outbound-ad' );
which would add event tracking with the name of
outbound-ad
to my link.I know I can use
the_content
as you have added a filter to that, but that limits me to theoutbound-article
event, and there may be instances where I don’t necessarily want to run all the content filters on something, so having just an analytics one would be much more efficient.Is this is a possibility?
Many thanks
Simon
- The topic ‘[Plugin: Google Analytics for WordPress] Could a filter be added for custom outbound tracking?’ is closed to new replies.