Google Analytics - Regular Expression Goal URL Not Matching Page Views - regex

For some reason - my goal URL page loads don't match my overall goals tracked in Google Analytics.
When a form is completed on my site - the URL will be appended with the following:
?enquiry_sent
so www.mysite.com would become www.mysite.com/?enquiry_sent
I am using the following regular expression to try and track the URL loads:
.*\?enquiry_sent.*|.*\?enquiry_sent
Yesterday - we started testing across the site and out of over 75 forms submitted we only registered 7 goals in GA.
The unique page loads for the urls with ?enquiry_sent are all in Google Analytics but just not being registered as a goal.
Does anyone know why this is happening or how we may fix this?

Your regex doesn't make sense. It should be just:
.*\?enquiry_sent.*

I'm just updating this thread as I have had a response from the team at Google. Apparently there was no issues with the regex that was used.
Google has let me know that Goal Completions are actually a measure of how many visits result in a goal completion, rather than how many times a goal is actually completed.
So while in my situation there were over 75 leads submitted from the website - they were only submitted from 7 visits, hence only 7 of the conversions were counted in the goal completions report.

Related

Google Analytics - Match URLs on Unique Number in Content Drilldown Using RegEx?

I am trying to track pageviews on Google Analytics for knowledge base articles (on Zendesk).
Each article has a unique number. However, the title of the page is sometimes appended to the URL, and GA tracks this as a separate page. If the title of the article changes, it generates a new URL.
For example, these would all be the same article, so I want to see a single pageviews count, but GA would show as 3 separate stats
/hc/en-us/articles/360039413394
/hc/en-us/articles/360039413394-How-To-Make-A-Sandwich
/hc/en-us/articles/360039413394-How-To-Make-A-Turkey-Sandwich
I want GA to roll up the articles matching on the unique number, and ignoring everything after that. Is there a built-in way to do this? Is there a way to do this with Regex? Where would I add the Regex for the Content Drilldown page? Help!
Thank you.
Analytics cannot know in an integrated way which part of the URL interests you or which distinguishes one page from another.
What you should do is understand when in your system the page title is appended to the URL and avoid it.
For future data you can try to clean the data with a regex before it arrives in Analytics, for example with GTM, but this could compromise the other URL cases that need to be handled differently.
In general, if in the Analytics reports you filter the URLs for an identifier, for example 360039413394, in the first row of the report you can see the aggregated values of all the URLs that contain that string. So if you need to verify a particular product page you can use this workaround when viewing data.

Best way to track campaign transactions in Google Analytics

We have just begun trying two price comparison websites that are using different source, medium and campaign values in Google Analytics.
I want to try to track sales from these to the product and notice that in Analytic Goals they are fine for setting up a goal that would end in our transaction confirmation url but need to have a funnel url that ends with, for example below
utm_source=pricerunner&utm_medium=cpc&utm_campaign=pricerunner
Anybody have any idea how to do this using the end of a url? All I can see if GA is the entire url value or "begins wih"
I have tried using regex but nothing is being tracked
The campaign parameters needs to be passed in the url from the price comparison website to landing page (probably a product page at your end). At that point the GA session gets automatically associated with the utm parameters, and you do not track those url parameters subsequently in your funnel.
If you want to see the funnel for a specific pricce comparison website you can use a GA segment to isolate the goal traffic based on the campaign name. that should do the trick

Google Analytics in footer file

I have a question about how Google Analytics tracks pages in a Wordpress site or any other site that uses a template file to include the code for Google Analytics in the footer or header. Since the file is generated and used in all the pages, that would mean that the analytics code is counting all the pages that are viewed correct? Also, is it possible to view what pages are getting hits and have a more detailed report in Google Analytics? I just have a feeling that the page i'm tracking is displaying inaccurate reports since the same code is used on every page. Can anyone help clear this up and educate me a bit on this topic?
The code is always the same, it loads in the footer so you dont have to put it on every single page.
in the code there is a unique code for your website so analytics knows wich analytics account needs to get the information.
The code dosn't need to be changed everypage.
You can see the pageviews like this:
-->google analytics
--->contents
-->Site content
-->all pages
Now you get a list with urls and the page view for every url
You can sort the list by pageviews (how many times is the page loaded) and unique page views(How many uniqe ip addresses have visited the page.).
You can also find bounce rate wich shows how many % of the users left you site on that page.

Rewrite Generic URLs into real URLs on Google Analytics

I have an iPhone app for a forum which also has a limited Google Analytics reporting.
This app reports the page views in following form:
/forum/67
/thread/29036
etc...
The numbers above represent forum and thread ID's
I am trying to set an Advanced filter, which will rewrite/report the page views as following form:
http://www.mysite.com/forum-67.html
http://www.mysite.com/thread-29036.html
Can someone please assist me in creating an Advanced Google Analytics filter which will enable me to see URL's so they can be live and send to correct page.
Obviously there will be a need for some RegExp matches, but I cannot get around it.

Goals in Google Analytics do not work

I cannot figure out how to get Google Analytics Goals to work:
URL in Google Analytics report:
/relay/v2/relay.cgi/www.mydomain.com/faerdig.php?tid=3414528&orderid=03-14:29&amount=100000&cur=208&date=20101003&time=1430&cardnopostfix=4000&timer=03-14:29&cardid=2&transfee=0
(Above URL is taken straight from the Google Analytics report)
I want to search for: faerdig
I have tried the following:
Head Match: /relay/v2/relay.cgi/www.mydomain.com/faerdig
Regular Expression Match: faerdig
First and foremost GA has a delay of 24-48 hours on custom coding (and sometimes even generic page view hits), so don't expect to see hits instantly.
2nd, you must have the global GA code on the target page in order for it to be tracked in GA. Have you ensured that the global code is on the actual page? Pointing to the right account, etc...?