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
-
Collecting post codes / zip codes in Google Analytics - Terms of Service
Hi Mozzers, Just reading up on Google Analytic's Terms of Service and wondering if collecting post codes / zip codes (from a website's 'Find my nearest...' tool) adhere's to the following: "You will not (and will not allow any third party to) use the Service to track, collect or upload any data that personally identifies an individual (such as a name, email address or billing information), or other data which can be reasonably linked to such information by Google." What do you think?
Reporting & Analytics | | A_Q0 -
I have conflicting user flow and bounce rates Google Analytics
Has anyone come across this or know how to read this data. In my site content landing page report I have 141 sessions at 0.71% bounce rate = 1 session But then in user flow I have the same page with 123 sessions with a drop off of 117 sessions???
Reporting & Analytics | | Lucas_SOS0 -
Google Analytics Stopped Tracking Visits - NEED HELP!
Hi Moz Community, I have about 10 sites, static HTML sites and WordPress sites, which ALL stopped tracking Google Analytics on August 2nd. They go to a flat-line! Dead! No data! Has anyone else experienced this either currently or before? I have confirmed all code is correct as it's been tracking these sites for years. One site gets 5,000+ visits a month and they are sitting at only 1,500 now and will be a fun conversation to have with the client. If all code is correct, what should I do? How do I overcome this without having to re-create another account/tracking ID? Never dealt with something like this before and there is not much on the web or in other forums. Would appreciate any help or advice or tips! - Patrick
Reporting & Analytics | | WhiteboardCreations0 -
Conflicting data in Google Analytics
Hi Guys I've been looking at the data for a client in Google analytics and I was wondering if anyone knows why some of the data doesn't tally up. In my case its the following: Under Aquisition
Reporting & Analytics | | Relative
No of Sessions for a Keyword shown in Organic Search tab (compared to)
No of Clicks for a Query in the Search Engine Optimisation tab For example, for a brand term, Google are showing 17 Sessions in Organic Search.
For the same term Google are showing 90 Clicks in the Queries section of Search Engine Optimisation OK, we know that Google are a little cloak and dagger regarding keyword data but surely Sessions and Clicks for the same keyword should be identical unless I'm missing something.0 -
Keep multiple Google Analytic / Webmaster accounts seperate?
Hi, I have a paranoid suspicion that putting all my websites on one Webmaster / Analytic account will mean any links between my sites won't carry any weight, and Google might consider similar content much more readily if 2 of my sites are in the same market. So I have about 4 different accounts with my main sites split across them. Am I being over paranoid? Do any of you have any problem with all your sites being on the same account?
Reporting & Analytics | | SpecialCase0 -
Individual or Separate Google Analytics Accounts for Each Country Location?
We have 3 websites. USA, Germany and UK. Currently our analytics account is set up with 1 account with each domain as a Profile. I am wondering if I would see more accurate results if I have them set up individually, under the same Google account, but different Analytic accounts. The reason I wonder is because I noticed when I was going through setting this up, it asked for each Country Time Zone for each domain. I was not sure if this was for me to see the times, or if this was to provide more accurate data. Maybe this is just a personal preference topic?
Reporting & Analytics | | hfranz0 -
Mobile and Google Analytics
As my mobile numbers are going up in Google Analytics I'm trying to figure out what phone runs what browser. I see that 93% of mobile users have Safari which I believe is iPhone, iPad and iPods. There is a 6% usage of "Mozilla Compatible Agent". What cell phone would this be?
Reporting & Analytics | | LabadieAuto0 -
Google Analytics should track users from iPhone App
Hi Mozzers, you say there are no dumb questions, here is one. We've build an iPhone App for our Website working-dog.eu. So users can read there new messages with ease when they are out of the office, read about breeds, ... do all the nice stuff they want. I don't think so, but is it possible to track these users with Google Analytics? When the come via App, the Analytics code will not run for them. But maybe it could start an AJAX request or something like this? But how should the code run, without a browser which can interprete JavaScript? So, in short: Is it possible to track users from iPhone App with Google Analytics? Kind regards Patrick
Reporting & Analytics | | mdoegel0