How to filter by query string in Google Analytics? - google-analytics

This is a question about Google Analytics state 06/2016.
We run a site and have decided to try out Facebook Ads. Now in Facebook ads we have defined a custom parameter src=fb.
I'd like to create a custom Analytics report that shows
How many visitors visited the site via Facebook Ads
and then which pages they viewed and if they clicked on Adsense ads and the usual Adsense statistics like cpc, rpm.
How do I create a filter for this src=fb query string so I can follow what they did on the target site?
Please be detailed, a "create a custom filter" doesn't cut it. How, where, what content? The target uri is /?src=fb.
Edit: More clear information
There is a target site: example.com
There is a Ad campaign. To know that people came to the target site using this Ad campaign there is a parameter src=fb e.g. https://example.com/?src=fb
Because we know the parameter we could filter visitors who landed on the target site through the ad campaign.
GET /?src=fb HTTP/1.1
Host: example.com
This way we know people who clicked the ad came from the campaign.
People who did not click the ad visited the site from other sources. They don't matter in this context.
Now as the first step I'd like to display everyone who visited the site using /?src=fb uri. I could grep server logs but I wouldn't know if they clicked ads on the target site.

First, you should probably be using UTM parameters for offsite campaigns. Google Analytics automatically pulls UTM campaigns into standard campaign reports so you'd have to do only minimal sorting and filtering to analyze your Facebook ad performance.
But since you used a custom query string instead of UTMs you'll probably have to create a Custom Segment: Advanced > Conditions, and Include only Users (or Sessions, up to you) who hit a Landing Page that contains 'src=fb'. Like so:
Save that segment and view your reports through it and as long as your property is configured properly (you may have to define goals), you should see how your users behaved after hitting the ad.

Related

How to create a Google Analytics report on a specific query string?

I have hunted around a bit and only found how to setup the site search parameter in a site's admin section. This is not what I want. Also looked through some Google Search Console videos - no go.
Given a URL, https://somesite.com/redirect/?redirect=https://gofundme.com/somecampaign/.
As some background, what I have setup here is a simple page that says "Loading..." and is used for external links I want to track analytics on, from platforms that I may not have access to the link's analytics. For example: https://gofundme.com/somecampaign.
Rather than having a redirect setup on the page itself, I injected custom JavaScript through Google Tag Manager that records analytics data in Google Universal Analytics (anyone want to recommend how to do this in G4A?) then performs the redirect.
My question is, in Google Analytics, how do I setup a custom report where the query string parameter = redirect and/or the specific page URL?
Thanks.

Can't track in Google Analytics data from GetResponse

Our email marketer is sending email from GetResponse with a tracking code generated from another tool,
but we can't see if the users are coming from the email source.
Is it possible, because it is with tracking code generated from other tool, GA to mark it as direct traffic and is there a way to know it is coming from the email campaign? Also, I am not sure it is tracking it at all, becouse I don't see much traffic in the landing page. The GA is fired, I checked!
The tracking code includes the main domain and it redirects to a specific page.
Example: tracking.ourdomain.com/aff_c?offer_id=46&aff_id=76
You have to check in Landing Pages report (or All pages report), filtering by aff_id, if there are any sessions.
To track in correct mode the source you have to use UTMs parameters. You can build your URL with UTM parameters using this tool. It allows you to easily add campaign parameters to URLs so you can track Custom Campaigns in Google Analytics. Then you can find those sessions in source / medium report.

Company domain google site visitors by name via google analytics

I have a company domain google site and enabled google analytics account. Could somebody advice if it is possible to view same domain site visitors by name?
I want to track who of my colleagues visited my site and what is the frequency.
Thanks.
In order to connect a user in Google Analytics to a person, you'd need some sort of system to make the connection. This could be a login, a form, a url parameter, or something like that, where at a certain point you know who they actually are. At that point, you can assign them an ID (in a custom dimension) and make reports tracking their behavior.
It is worth noting (as above) that you can't store personal info in Google Analytics - so the ID would have to be non-identifying, like a GUID or random, numerical ID.
Some strategies for connecting website users to individuals include:
Email Marketing - Many email marketing companies allow you to pass a unique identifier in the URL of anything they click. You could then read this url parameter with javascript and assign it to a custom dimension in Google Analytics.
Login/SignUp - You might have some content behind a login-wall. For example, in order to download a document, you make the user fill out some personal information (like an email and their name), then email a link to the document to them. Once you have the user's information in your system (via the form submission), you can grab the user's ID from the submission.
Manual Parameter - Similar to the "Email" one, you could just email your colleagues a link to the website with a custom ID on each link. Just read that parameter from the URL with javascript and assign it to a custom dimension.

Google Analytics metrics to find total number of users who came to site via ad campaign

Is there any way to determine how many users visited my site via ads of my site posted on other websites?
By default these will show up as referrals in the channel and all traffic reports. To get more granularity you'd have to use campaign parameters in your ads url. You can create properly tagged url via Googles url builder which has some documentation on the various parameters.

How to capture if a visitor is from a google adwords click

When a user signs up on my site I want to be able to store whether or not they came to my site via an Adwords campaign.
I know google uses javascript to track conversions based on a cookie that is created on the users machine. Is there a way I can check this cookie so I can store the source against the user account?
You're correct--you can read this data from the cookies.
To configure the tracking:
connect your adwords and GA
accounts:
in your AdWords account, go to My
Account > Account Preferences, click
the "edit" link next to Tracking
then select the box that says
"Destination URL Auto-tagging".
Click "Save Changes";
still from your AdWords account,
click the Analytics tab and choose
Analytics Settings > Profile
Settings > Edit Profile Information;
check "Apply Cost Data", then click
Save Changes
So how can you tell if it's working? And where does GA store the data?
Grab an initial __utm.gif request and look at the Referer. Appended to the URL is a new parameter "gclid." This is the keyword-specific parameter (unique to your account). It's this parameter that distinguishes your visitors as AdWord-originating (i.e., "google(cpc)") from "google(organic)" Here's one i just grabbed and anonymized (scrambled the numbers/letters):
Referer: http://www.adomainname.com/?gclid=CKr61p31yKACFZlg4wodjj3gbA
You'll see this identical string in two other places in the same tracking pixel request:
(i) as the value for the GIF Request Parameter "utmp" which is the page request for the current page, and, most importantly;
(ii) as the value for the GIF Requests Parameter "utmcc"--the container for the cookies. The specific cookie that holds the adwords data is __utmz, which is actually the container for all referral data. Here's an anonymized example i just grabbed more or less at random (i.e., i just did search in Google using a query comprised of obvious Adwords and then clicked one of the paid links in my search results, then just pulled the Request Header):
utmcc=__utma%3D755416178.1576730350.1269876846.1269143846.1269143846.1%3B%2B__utmz%3D219726107.1269143846.1.1.utmgclid%3CKr61p31yKACFZlg4wodjj3gbA%7Cutmccn%3D(not%2520set)%7Cutmcmd%3D(not%2520set)%7Cutmctr%3Dhomes%2520for%2520sale%3B
HTTP/1.1
You could add an additional url parameter to the url you gave at google adwords, and check for it on your site and store in a session variable or cookie.
At registration of a user account check for this session or cookie you have created and act accordingly..
I know this already has an accepted answer but it's very out of date. The updated way can be found here: https://support.google.com/analytics/answer/1033981?hl=en
C+P'd:
In order for Analytics to display details about your AdWords keywords
and costs, you must do one of the following:
Enable auto-tagging. This is the recommended approach and ensures that
you get the most detailed AdWords data. Manually tag all your keyword
final URLs with tracking variables. You should only do this in the
special cases outlined below.
How auto-tagging works Auto-tagging automatically imports AdWords data
into Analytics. Combining AdWords data with the rich post-click
information provided by Analytics allows you to see what happened on
your site after people clicked on your ads.
When you enable auto-tagging, a parameter called gclid is added to
your landing page URL when a user clicks over to your site from an ad.
For example, if your site is www.mysite.com, when a user clicks on
your ad it appears in the address bar as:
www.mysite.com/?gclid=123xyz
Enable auto-tagging To enable/disable auto-tagging:
Sign in to your AdWords account. Click the gear icon, and select
Account settings. Make sure you're on the Preferences tab, and click
Edit in the Tracking section. Select (enable) or clear (disable) the
Auto-tagging checkbox. Click Save changes.
You could always provide an adwords-specific landing page. That way you have a lot freedom to do whatever you want with the incoming adwords user...

Resources