Google Analytics: Grouping similar referrals without loosing source - google-analytics

Lets say I have 100 customers that bought a website from me. In the footer of their websites I have the text "Website developed by:" followed by a link that points to my company website. In Google Analytics for my company website these referrals will show up with the customers URL as source, and "referral" as medium. I would like all of the referrals from my 100 customer websites to be grouped, so that i can view the total metrics together. I have tried using utm_source="Customer Website" on the referral links, but the utm_source overwrites the default source (that is the customer website URL) so that there is no way for me to separate the different websites.
How can I set up this in Google Analytics so that I can both view all of the referrals from customer websites together and separately?

You can use utm_campaign=Customer-Referral and then see all this data under one campaign on Google Analytics.
You can direct the traffic to the destination page but with a dummy query string parameter such as www.example.com?ref=client, and then see the traffic that is directed to this specific page on Google Analytics.
Based on the ref, you can inject a user-level custom dimension that will show you data of that specific group. What you should add is ga('set', 'dimension1', 'Client Referral');
Add it to your tracking code before ga('send', 'pageview'); You need to send this data only once, at the first page view. You can read more about it here: https://developers.google.com/analytics/devguides/platform/customdimsmets
(note: I used dimension1 assuming that you don't have existing custom dimensions. If you already using slot no. 1, update it to another slot).

Related

Check if Facebook/Instagram ads comers clicked on a specific button on my website

I would like to track clicks of a specific button on my website of people who came from the Facebook/Instagram ads I created.
I implemented the Facebook pixel which triggers on pageview.
I also put gtag('send', 'event','apply btn') on the Apply button. This shows me reports on Google Analytics but it doesn't show if those people came from the ads I created.
Is there a view on google analytics where you can see the name of the campaign the user came from, or is there something specific I might be missing in the configuration of the campaign or the gtag?
You have to add parameters to URLs to identify the campaigns that refer traffic.
utm_source: Identify the advertiser, site, publication, etc. that is sending traffic to your property, for example: google, newsletter4, billboard.
utm_medium: The advertising or marketing medium, for example: cpc, banner, email newsletter.
utm_campaign: The individual campaign name, slogan, promo code, etc. for a product.
There are also utm_content and utm_term.
https://support.google.com/analytics/answer/1033863?hl=en

How do I stop these self-referrals and get accurate referrals from our cross-domain eCommerce data?

Basically, I work for a theater and we send patrons to our primary website (we'll call this theater.org) to look at events and choose what tickets to buy and when they go to purchase tickets, we have put links in our primary webpages to our ticketing platform (we'll call this tickets.com).
Now, I have set up cross-domain tracking so that I can see people once they get onto tickets.com and see if they purchase a ticket. Great! But I can't really see where those people are specifically coming from because the referral source is always theater.org. I would like to see the original referral to theater.org that led to the purchase on tickets.com.
Here's what I've tried:
I've added the allowLinker (true) and the cookieDomain (auto) to my cross-domain Google TagManager
I have added both domains to the Referral Inclusion List (now I just get "direct" as the source for my eCommerce transactions instead of theater.org )
Additional info:
I have used the Analytics debugger console to see that the user-id changes as I move from one of my domains to the other, so that's definitely the primary issue
I see correct referrals on my Page Views for the theater.org , but not tickets.com
You need to make sure both tickets.com and theater.org both use the same Google Analytics property ID (UA-XXXXXXX-X) and have cross-domain tracking configured in the GTM container for BOTH domains.
Then you can look at the acquisition report tp get a sense of how people are arriving at your site OR dimensions like "previous page" or segment your goals by sessions that have visited a specific page.

Adding additional information for referral links in Google Analytics

I've been trying to do a bit of research into this but am not really able to find a proper answer.
I have a number of ad campaigns for my site and I want to see where referrals are coming from and which ad campaigns are working best.
For example, I want to tell how direct email marketing campaigns are performing compared to one another. Normally I think most of these come up as 'direct' traffic in Analytics.
However, I want to know if there is some way I can change the URL's in the various ad campaigns like:
example.com?adcampaign=1
example.com?adcampaign=2
example.com?adcampaign=3
etc,
And then be able to see these in Google Analytics as referrals like Google, Facebook etc,.
Note:
I am using Google Tag Manager to handle advanced ecommerce tracking in Analytics
For future reference this is what is needed:
utm_source // the source it came from
utm_medium // the medium used
utm_campaign //the advertising campaign it is part of
ref: support.google.com/analytics/answer/1033863?hl=en

Clean Google Analytics referral spam in my web app

Stats have been showing many referrals of spam crawlers. I have solved the problem doing a segment in Reports and in my Google analytics panel now the stats are “clean” without any disturbing data….
I want to know if there is something I can do to show this clean data also in my web app because now the data is full of rubbish referrals.
How I can filter them. are there any APIs which send me filtered data in queries ?
You can block the spam referrals by adding a filter.
In GA, got to the Admin tab. Then go to Filters (under the View column). Name the filter, select "Custom" and "Exclude". In the Filter Field dropdown, select "Campaign Source" and enter the domain of the spam referrer in the Filter Pattern box.
Click verify and it should show that referrals that were previously tracked will now be counted as 0 hits.
You can add multiple domains to the filter pattern using regex, like:
(domainone|domaintwo|domainthree)
Unfortunately, this will not retroactively change your past data.

Creating a campaign to track links

I'm new to google analytics and I'm a little confused on how to get an unpaid campaign up and runnning. I'm making the campaign in order to track links to a page from different sources (website buttons, emails, newsletters, etc.). What I'm trying to do is set something up in GA so that I can track how people are getting to a specified page. I've been reading this as well:
https://support.google.com/analytics/answer/1033863?hl=en&ref_topic=1032998
Do I have to create the campaign in google analytics (and if so where) or do I just apply the appropriate campaign/tracking tags to the links I need tracked and it automatically creates it? Also, how would this work with emails?
Thanks for any help!
Essentially, you will build the campaign tracking URL in URL Builder and put those links in your email, newsletter, etc. Once visitors start to click the links via the email, a campaign will be created under Acquisition > Campaigns.
You do not need create campaigns at Google Analytics: when you tagged campaign manually or at URL builder, your campaign data(source name,campaigh name and others) will be categorized by Google Analytics automatically.
GA parses tags at your links and save data about you campaigns.

Resources