Google Analytics For Mac



The Google Analytics app helps you monitor your websites on your Mac. With this app, you can: 1) Check key metrics in built-in reports 2) Compare date ranges and apply segments. Google has released a Web browser add-on that will stop the browser from sending information to the Google Analytics service, which Websites can use to collect data about their visitors.

Note that Tableau Desktop supports only extracts for Google Analytics. You can update the data by refreshing the extract. For more information, see Extract Your Data. Sampled data returned from a query. GA restricts the amount of data that it returns from a query and provides sampled data instead. Sampled data is a random subset of. Which means that you can analyze how Google Analytics is implemented without having access to the code on the server. I have used it for many years and it has saved me tons of time. If you are a developer or somehow working with Google Analytics, this plugin is a must for you! Here's how you can block Google Analytics and stop it from tracking you on your Mac. Open a terminal window. Type in the following command then hit Enter: sudo nano /private/etc/hosts 3.

Many Google Analytics users have been there – you log into your Google Analytics account and see an unexpected huge decline in traffic. It has flatlined and your Google Analytics isn’t working anymore.


Or you installed your Google Analytics or Global Site Tag code on your website a couple of days ago and you’re still not seeing any data in your reports.



P.S. Once you have successfully installed the tracking code on your site, it can take up to 24 hours for data to show up in your regular reports.

If your Google Analytics is not working as expected and your data isn’t showing up in reports, you can quickly go through this troubleshooting guide and effectively pinpoint the culprits behind your traffic drop.

How to verify that your Google Analytics isn’t tracking?

1. Analyze your Google Analytics Real-Time reports

The Real-Time reports help troubleshoot your Google Analytics setup and show all current activity on your site. If you have active visitors on your website and you don’t see any data in your Real-Time reports, your tracking code is not sending any information to your Google Analytics account.

Google Analytics Free

This quick and easy test is a good indicator whether your Google Analytics tracking code is working properly or not.

Here’s how you can find your Google Analytics Real-Time reports:

  1. Sign in to your Google Analytics account.
  2. Choose the right property and navigate to the right view in this property. You’ll probably see only one view in this property if you just recently installed Google Analytics on your website.
  3. Select Real-Time > Overview.

How to use it?

Google analytics for mac
  1. Open your website in Incognito Mode or just make sure none of the extensions are running in your browser that might block JavaScript. In addition, make sure you haven’t filtered your own IP address.
  2. Open your Real-Time report, wait a couple of seconds and you should see the number of all current active users on your site including yourself. If you don’t see any activity on your website, your Google Analytics isn not working properly and you should try to fix it.

Annie has created a good YouTube explainer video that teaches you how to go through this process:

2. Use Google Tag Assistant to verify your setup

Google Tag Assistant shows you whether your Google Analytics tracking code is firing correctly on your website or not. You can record your activity on your own website and analyze all the hits sent to the Google Analytics property later on.

This tool will notify you if there were any errors associated with those hits and will let you know what’s wrong with your Google Analytics setup.

How to use it?

  1. Install the Google Tag Assistant Chrome extension to your browser. If you’ve done that, the Google Tag Assistant icon should appear in the extensions bar of your Chrome browser.
  2. Refresh your page and see whether your Google Analytics tag fires correctly or not.
  3. Start recording your activity on your website by clicking the record button in the lower left corner of the Google Tag Assistant window.
  4. Begin navigating through the flow.
  5. Stop recording by clicking the stop button in the lower left corner of the Google Tag Assistant window.
  6. Analyze the full report to find more details about your recording.

Google has also created a step-by-step guide on how to use Google Tag Assistant:

3. Check your Developer Tools

The best way to ensure that your Google Analytics tracking code is firing correctly is to pay attention to two things: network requests and the JavaScript console. You’ll find them in your Developer Tools.

This tells you if there are any JavaScript errors and helps you make sure that all requests are successfully completing as needed.

Here are different options how you can open your browser’s Developer Tools if you’re using Chrome:

  • Select More Tools > Developer Tools from the main menu
  • Press Cmd + Opt + I (Mac) or Control + Shift + I (Windows or Linux)
  • Right-click a page element and select Inspect

If you open your Network tab, you’re able to locate a specific type of request using the filter feature. Type in “collect” to see all hits sent to the Google Analytics endpoint. Keep in mind, a successful request would have the response code 200.

How to use it?

  1. Keep your Network tab open and refresh your page.
  2. You should see a list of requests your browser has made. If your page view request has the response code 200, everything is fine – page tracking hits are sent to Google Analytics servers. If you’re not seeing any requests, you might have problems with your tracking code (or you’re just using the old tracking code version).

Here’s how it should look like:

The most common Google Analytics setup issues

1. Your Google Analytics tracking code is not implemented correctly

a) Make sure you’ve added your tracking code to every page of your website. Here’s a list of tools that can help you verify that:

b) Be sure to preserve the code formatting when copying your Global Site Tag or GTM tracking code and pasting it directly into your website’s pages. I recommend copying your tracking code straight from your Google Analytics property.

c) Make sure there are no typos or errors in your tracking code syntax. For example extra whitespace or characters in your Google Analytics tracking code. If you are making customizations to the tracking code, take note of the following:

  • Function names are case sensitive.
  • Boolean values (e.g., true or false) should not be enclosed in quotes.

d) Make sure you’ve installed your Google Analytics tracking code in the right place on your website. It should be pasted just before the closing </head> tag. Yes, it does work if it’s installed in the body or footer section as well but then it takes more time to load and there’s a chance that you won’t capture all data.

2. You’re not tracking the correct property or view

Verify that you’re tracking the right property and view. If you have access to multiple Google Analytics accounts and properties, there’s a chance that you might be using the Google Analytics tracking code from another property, or you may be looking at reports in the wrong account, or for the wrong property and view.

Source code vs property settings in Google Analytics – different IDs

Google


Make sure that your Google Analytics ID (UA-XXXXX-Y) installed on your website
matches the ID you see in your Google Analytics property settings.

3. You’ve configured a filter that prevents traffic from affecting your data

Make sure you haven’t configured any filters that can inadvertently filter all of your data from your reports. It usually occurs when you include multiple “Include” filters.

P.S. Filter order matters in Google Analytics.

For example, you cannot include two “Include” filters of the same type:

It’s the wrong way to include social and cpc traffic.


If you use a regular expression, Google Analytics will include only organic and cpc traffic and everything is fine.

It’s the correct way to include social and cpc traffic.

Google Analytics For Mac Shortcut


You can read more about Google Analytics filters here.

4. You’ve turned on the User-ID feature in your view settings but haven’t configured it

User-ID trackingneeds an additional code implementation and if it’s not done, your Google Analytics view will contain no data.

Keep in mind, if you turn on User-ID reports in your Google Analytics view settings, the view will record only the data associated with the User-ID. Bear in mind, if you create a new User-ID view, you shouldn’t remove other existing views.

5. Other scripts on your page conflict with the Google Analytics code

Ensure that other scripts on your page are not using the same variables as Google Analytics. If they do, you’ll have problems.

Here you’ll find all the variables that the Google Analytics tracking code uses.

Final Thoughts

Hopefully, you now have a better understanding of how to troubleshoot and fix your setup if your Google Analytics isn’t working and your traffic is flatlined or you see a significant drop in the number of sessions.

Here’s some additional reading on the subject:

  1. Troubleshooting Google Analytics Setup Issues – The GIF Request by Himanshu Sharma
  2. Beginners guide to Google Analytics Debugging by Himanshu Sharma
  3. Google Analytics Endpoint Debugger by Simo Ahava
  4. Debug Google Analytics On Your Mobile Browser by Simo Ahava

If you have any questions or you’re struggling with the Google Analytics setup feel free to post them in the comments section below.👇

This article describes how to connect Tableau to Google Analytics (GA) and set up the data source.

Before you begin

Before you begin, gather this connection information:

  • GA email address and password

Make the connection and set up the data source

  1. Start Tableau and under Connect, select Google Analytics. For a complete list of data connections, select More under To a Server. In the tab Tableau opens in your default browser, do the following:

    1. Sign in to GA using your email or phone, and then select Next to enter your password. If multiple accounts are listed, select the account that has the GA data you want to access, and enter the password, if you are not already signed in.

    2. Select Allow so that Tableau Desktop can access your GA data.

    3. Close the browser window when notified to do so.

  2. On the data source page, do the following:

    1. (Optional) Select the default data source name at the top of the page, and then enter a unique data source name for use in Tableau. For example, use a data source naming convention that helps other users of the data source figure out which data source to connect to.

    2. Follow the steps at the top of the data source page to complete the connection.

      1. Step 1 – Select an Account, Property, and Profile using the drop-down menus.

      2. Step 2 – Select filters for a date range and a segment.

        • For Date Range, you can select one of the predefined date ranges or select specific dates. When selecting a date range, GA can provide complete data only up to the previous full day. For example, if you choose Last 30 days, data will be retrieved for the last 30-day period ending yesterday.

        • For Segment, select a segment to filter your data. Segments are preset filters that you can set for a GA connection. Default Segments are defined by Google, and Custom Segments are defined by the user on the GA website. Segments also help prevent sampling to occur by filtering the data as defined by the segment. For example, with a segment, you can get results for a specific platform, such as tablets, or for a particular search engine, such as Google.

      3. Note: GA restricts the amount of data that it returns in a query. When you try to retrieve more data than GA allows in a single query, GA returns sampled data instead. If Tableau detects that your GA query might return sampled data, Tableau attempts to bypass the query restriction to return all data instead. For more information, see All data vs. sampled data returned from a query below.

        Step 3 – Add dimensions and measures by using the Add Dimension and Add Measure drop-down menus, or select a predefined set of measures from the Choose a Measure Group drop-down menu. Some dimensions and measures cannot be used together. For more information, see Dimensions & Metrics Reference Guide(Link opens in a new window) on the Google developer website.

    3. Select the sheet tab to start your analysis. After you select the sheet tab, Tableau imports the data by creating an extract. Note that Tableau Desktop supports only extracts for Google Analytics. You can update the data by refreshing the extract. For more information, see Extract Your Data.

All data vs. sampled data returned from a query

GA restricts the amount of data that it returns from a query and provides sampled data instead. Sampled data is a random subset of your data. When performing analysis on sampled data, you can miss interesting outliers, and aggregations can be inaccurate. If Tableau detects that your query might return sampled data, by default, Tableau creates multiple queries from your query, and then combines the results from the queries to return all data.

You see the following message when Tableau returns all data.

Google Analytics For Mac Os

If the query stays within the boundaries of the query restrictions, GA doesn't return sampled data and you do not see the above message.

Troubleshoot issues with returning all data

Google

If your query continues to return sampled data, consider the following:

  • Missing date dimension – You must use the date dimension in your query to return all data.

  • Too much data – Your query might contain too much data. Reduce the date range. Note that the minimum date range is one day.

  • Non-aggregatable dimensions and measures – Some dimensions and measures cannot be separated into multiple queries. If you suspect a problematic dimension or measure in your query, hover over the All data button to see the tooltip that shows which dimensions or measures to remove from your query.

  • Legacy workbooks – Workbooks created in Tableau Desktop 9.1 and earlier cannot return all data. Open the legacy workbook in Tableau Desktop 9.2 and later and save the workbook.

Return sampled data

Google Analytics Login

In cases when workbook performance is critical or there are specific dimensions and measures you want to use in your query that are not supported by Tableau’s default query process, use sampled data instead. To return sampled data, select the Sample data button.

See also

  • Set Up Data Sources – Add more data to this data source or prepare your data before you analyze it.
  • Build Charts and Analyze Data – Begin your data analysis.

5 Tips to Get More from Google Analytics(Link opens in a new window) - Read the Tableau whitepaper (registration or sign in required).

Google Analytics Meaning

Thanks for your feedback!There was an error submitting your feedback. Please try again.