How to track outbound clicks with GA4 when you use a forwarder? - google-analytics

We already use GA4 for quite some time now. One of its features is that it automatically tracks outbound clicks. However, with external links we use a forwarder. The flow is: Click on a link => internal forwarder page => external page. Because of this GA4 is not tracking this event as an outbound click.
Do others experience the same issue? And is there an easy solution to make sure that those clicks are being tracked as outbound clicks?
Example: You visit an holiday affiliate website and click on the blue button 'go to the deal' you will see that you will get forwarded to the forwarder (internal link) and then go to the deal itself (external website).
Thank you in advance!

Related

Is there an Affiliate plugin or way to track affiliate links with 301 redirects for Ghost CMS

Currently Im using 301 redirects for affiliate links in Ghost CMS. But with ghostboard analytics I can not seem to track traffic.
So two questions. Is there a better way for affiliate links within Ghost?
And how can I track these in a right way?
Thank you!
I did this by connecting the website to Cloudflare, then served Google Analytics through Zaraz (available in free plan).
After this, I set up a click listener for website links with rel=nofollow (a[rel="nofollow"] selector) for tracking affiliate link clicks in Google Analytics without additional software.
Note: New Google Analytics (4) may require some experimentation to see clicks. Set up trigger in Zaraz (Action Name > Event Name = "Aff Click Track Property: href") for GA to create a new event and easily track clicks in Google Analytics.

Redirect with custom link to an external source and track the redirect

I want to share links like www.domain.com/twitter/headline where twitter/headline represents the link I put in my twitter headline. Then I use something like nginx to configure what would happen. I want to redirect the source to an external page like a profile and I want to track how many people clicked the link with something like bitly or google analytics or does anyone know an elegant solution for my use case?
Problems with bitly
1. You can not have two links for the same destination. So let's pretend I have domain.com/twitter/a and domain.com/twitter/b and both redirect to two bitly links that forward to my linkedin profile. This does not work.
Problems with Google Analytics
1. ga is not made to track redirects. it can track where the traffic comes from but since I forward to external sources like linkedin I cannot put a ga code on my linkedin profile to do it.
I am not sure to understsand the entire flow.
You can use a service like anytrack.io.
it will track the incoming traffic landing on your page (very much like GA does), and
track the outbound clicks to wherever you send the visitors.
Then it will tie the events to your GA account.
Not sure if that's what you wanted to do...

Tracking Email Opens with GTM Event

I'd like to trigger an event to identify when an image has been served upon visiting a site.
The goal is to use this event for email open tracking. I already have a tracking pixel embedded in the email that served from my website each time the user opens the email.
I have the event set up to store the 'Label' = a variable that contains the query string from the URL referre. This should in theory capture the utm parameters from the URL, for example:
website.com/1x1tracker.gif?utm_source=email&utm_campaign=emailcampaign1&utm_content=welcomeemail
Where I am getting stuck is the trigger for the event. For a normal image viewing event I could just do something with an 'Element Visible' trigger and be done with it, but since the image is requested from the website via the email client, no one actually visits the site.
Curious to hear thoughts on how I can get this event to be triggered by someone opening the email and having the request for the image sent to my site.
Thank you!
You won't be able to track email opens with GTM since it only works in a DOM environment and requires some Javascript to run on the page.
However, you can send events to Google Analytics through Measurement Protocol based on the parameters in your pixel URL. Google provides a sample code to do that on the help pages.

track clicks on external website

Is it possible to track clicks on other websites, which I have no ownership? The Google analytics can be used to track the activities on my own website. But I would need to track if user clicked on the link on an external website.
Any help would be appreciated.
No, you can not track external websites. However you can track an event, if the user clicks on a link on your homepage which leads to an external page. Or you can track the referral information, which tells you where the user came from.
An easy way to track outbound link clicks is with autotrack using its outboundLinkTracker plugin.

Google Tag fires but not logged in Analytics

I had set up my Google Tag to track clicks on spans with certain IDs, the events are firing according to WASP extension, but they are not showing up in my Google Analytics account.
Here is my trigger:
My Tag:
WASP in action:
GA displays pageview only:
Code is installed properly
Sorry if this seems pretty obvious, but in Real Time you should be on the Events tab, and it seems you are looking in the Content tab. Events are never displayed there.
While the configuration looks to be correct, remember that events won't show up in your standard reports until the data is processed, which takes about 24 hours. As long as the hit is showing up in your Real-Time reports, then you shouldn't have any issues.
Can you please post full HTTP request? For instance from Charles Web Debugging Proxy of Live HTTP Headers extension or anything simillar.
What you post seems to be correct as #nyuen says!

Resources