Using logical operators (AND / OR) in Google Analytics Goal Funnels
-
When setting up a Funnel within Google Analytics, is it possible to use logical operators (e.g. OR, AND) in the first (required) step of the funnel? For example, suppose I want to track users who visit page1.html AND page2.html before proceeding to the destination goal.
I've entered two pages separated by the OR operator, and neither the "Verify this Goal" nor "Save" produces an error message - is it safe to assume that this is working as I intend?
Thanks in advance!
-
Thanks, Peter. That's useful to know.
I ultimately found an easier solution. My situation is that I'm changing some URLs and I want to keep consistent tracking of my funnels/goals.
So if I changed a URL from say page1.htm to page2.htm, I was thinking I needed to define the associated funnel to be page1.htm OR page2.htm. However, I discovered that if I simply changed the funnel from the former to the latter, all of the historical data for page1.htm would be combined with new data collected for page2.htm. Thus, the logical operator wasn't necessary.
-
Yes - but there is one thing that you should know. Once you enable RegEx ALL your parameters in funnel should be regexed.
https://support.google.com/analytics/answer/1116091?hl=en#matchTypes
"Match Types: Begins with, Equals to, & Regular Expression
There are three diferent match types that define how Analytics identifies a URL for either a goal or a funnel. The match type that you select for your goal URL also applies to the URLs in the funnel, if you create one." -
Trenton,
Thanks for the suggestion. I'm trying it your way and will test shortly!
Best,
Akira
-
Hey Akira,
In the interest of a fast response, I have to admit I'm not 100% positive on this, that said I believe and my research (1, 2, 3) has supported the below response:
I do not believe that you can use logical operators to setup a step of the goal funnel, but you CAN use RegEx.
A simple RegEx to help here would be: (page1.html|page2.html). The () are just a grouping & the | is the OR operator.Hope that helps! Let me know if you have any issues on this. I would recommend testing your solution (make sure you haven't excluded the IP you're on) to ensure it's working properly. You should be able to see it ~2 hours after you complete the test.
Regards,
Trenton
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google Analytic Bug For Browser Report
Hi All, I am checking browser report since many years today I was checking browser report what I find "DESKTOP" is showing in Browser & OS section with lots of traffic. Screenshot attached Is it google analytic bug? Can anyone please help me? PeGK7
Reporting & Analytics | | Arnold30 -
Google Analytics - Average Position
Hi Just trying to get some clarity on Google Analytics Average Positions in "Aquistions/Search Engine Optimisation". For a very competitive keyword Google Analytics is saying i am on average position of 6. Is this Page 6? I am assuming position six would be 1.6?
Reporting & Analytics | | Cocoonfxmedia0 -
Google Analytics Set-Up for site with both http & https pages
We have a client that migrated to https last September. The site uses canonicals pointing to the https version. The client IT team is reluctant to put 301 redirects from the non-secure to the secure and we are not sure why they object. We ran a screaming frog report and it is showing both URLs for the same page (http and https). The non-secure version has a canonical pointing to the secure version. For every secure page there is a non-secure version in ScreamingFrog so Google must be ignoring the canonical and still indexing the page however, when we run a site: we see that most URLs are the secure version. At that time we did not change the Google Analytics setup option to use: "https" instead of "http" BUT GA appears to be recording data correctly. Yesterday we set up a new profile and selected "https" but our question is: Does the GAnalytics http/https version make a difference if so, what difference is it?
Reporting & Analytics | | RosemaryB1 -
Need help with excluding IP addresses in Google Analytics
In Google Analytics, are you able to add more than 1 IP address to an exclude filter? I found this article, http://www.creare.co.uk/filter-multiple-ip-addresses-in-google-analytics, but wasn't sure if it was the right way to do this or if I should create a new filter for each IP address. Also, when I try to create a new filter, it only will let me select from a list of profiles I have created whereas on other accounts I've been able to create several new filters without any problems. Does anyone know why this might be?
Reporting & Analytics | | jfeitlinger0 -
Goal in Analytics - mulitple sources for the destination?
Hello, guys. I am trying to find information without luck for my case - I have a contact form, which is placed on many inner pages (about 40). My question is - how do I make a Goal that has simultaneously all the different sources at once (as steps probably) - because there is a max limit of goals, and because analyzing them separately will take much time. When a form is submitted, a /thankyou//?recordid=0d53415b-3e6b-4a32-add7-1586a4737a89 (or similar URL) appears.My guess is that I use a regular expression of ^/thankyou as a Destination, but I do not know what to write in steps. Thank you all in advance, I hope I find a solutions of this annoying problem..
Reporting & Analytics | | petbiv0 -
Google Analytics & Omniture Discrepancies
I am seeing a significant difference between my traffic numbers in Google Analytics and Omniture (Omniture has significantly more). I do not expect them to report exactly the same numbers but these are just too far off. Any idea why that is, or which one I should trust more? Thanks!
Reporting & Analytics | | emediaSEO0 -
Setting up Google Analytics for Subsites
I currently have one main .com site and am planning on launching geo-location subsites .co.uk, .com.au, .ru, etc... Traffic will flow between both sites and some of the content on the subsites will be duplicate and therefore include a canonical tag to the main site. I want to set up GA to capture who is going to the subsites and vice versa and correctly capture crossover traffic. Any advice on implementing advanced analytics directly (or links to sources that will direct me the right direction for this project)
Reporting & Analytics | | theLotter0