How do I add google analytics tracking code to hub page subdomain?

The cool thing about Hub Pages is that you don't need to input code for analytics or affiliate accounts. To activate your Google Analytics tracking:1. Click on "My Account" in the top right-hand corner of the screen.

This will load My Hub Stats" page.2. Across the top of your stats page, you will see a menu that reads: "Hubs ... Profile ... Earnings ... Photos ... Activity". Click on Earnings.3.

On your Earnings page you will see the heading "Affiliate Settings" and under that "Report Settings" which lists Google Analytics. Click the "Get Started" button next to Analytics which will load the configuration page.4. At the top, you will see the question "Do you already have a Google Analytics account?"

Click Yes or NoIf Yes - simply input your Google ID (starting with UA- ) and save. If No - HubPages will provide a simple form that will walk you through the application process of obtaining an analytics number which you can then input for Hub Pages.

Tracking multiple subdomains in Google Analytics is a little tricky since there is no “easy” button to push. You will need to configure analytics properly to track and display data correctly. In this guide you will learn how to install Google Analytics to properly track subdomains and configure Google Analytics to best display the subdomain data.

This guide helps you configure Google Analytics to view all of your subdomain data in one place. Just a couple things to keep in mind. Each Google Analytics Account can have 25 Views.

Something to keep in mind if you have a lot of subdomains. The method covered in this guide does not alter historical data. So, if you have been tracking subdomains for awhile and are just now implementing the method in this guide, you may want to create segments for each subdomain.

See the FAQ for more info on segments. I recommend creating an extra View that remains untouched. This is pretty advanced configuration for Google Analytics, if you would like to save yourself some time, I can set this up for you for a one time fee.

Please contact me for more info. The first step in setting up Google Analytics to track multiple subdomains is to install the correct code. If you are using Universal Analytics then your code is already correct.

If you are setting up analytics for the first time then Google will give you the correct code. If you are not using Universal Analytics; then simply go to Admin -> Property -> Tracking Info and make sure ‘Subdomains of yoursite’ is set to On. This will add the following code: _gaq.

You can also manually add the code to your analytics code if you are comfortable doing so. Note: the code is the same for all of your subdomains. There is no need to adjust it for each subdomain.

Once you install this code on all of your subdomains Google Analytics will begin reporting data from each one. You have more work to do to best display and view this data. In the previous section you set Google Analytics up to track multiple subdomains; this section we will work on displaying the data properly.

By default Google Analytics does not show the domain or subdomain in your data. This poses a problem when tracking multiple subdomains because you will not be able to tell the difference between subdomains in the data. If you have pages that have the same path on any two subdomains, you will not be able to tell the difference between them in the data.

This includes the home page which will only display a forward slash. For example, if you have two pages like this: www.yoursite.com/contact-us and subdomain.yoursite.com/contact-us they will both appear as /contact-us in your data. We need to create a filter that will display the subdomain in our data.

Note: this filter will conflict with destination goals. It is important to remember that filters in Google Analytics do not alter historical data. This will be important to consider when choosing which filter to enter.

The filter that you should enter will depend on how you want to handle your historical data. If you want to show the full path for all of your subdomains moving forward (including www or whatever your “main” domain is) follow the filter below. If you want to only show the full path for a specific subdomain (this option may be more friendly with your historical data) then do the exact same filter above EXCEPT for the Hostname field enter (subdomain.yoursite.com) with the parenthesis.

After applying one of these filters you will be able to differentiate traffic between subdomains. Quick note on views. A view is what Google Analytics uses to refer to profiles of data.

You can create unique views that will allow you to manipulate the data in different ways for that view without effecting other views. To best organize your data I recommend creating a view for each subdomain and then another view that collectively allows you to display the data for all of the subdomains. If you have been following along closely so far, we have already created a view that collects data on all of the subdomains collectively and configured Google Analytics to display our subdomain data.

Now we need to create a view for each subdomain. Start by going to Admin -> Views -> Create New View. Once you have created a new view, you need to apply filters to make sure each view is only collecting data on their assigned subdomain.

To apply a filter that ensures that we track only traffic for the view’s designated subdomain, go to Admin -> Views -> Filters -> New Filter and refer to the screenshot below. Applying this filter to your profile will ensure that this profile only tracks traffic for the specified subdomain. In this case, www.yoursite.com.

Remember, www is a subdomain itself. Repeat this filter for each profile that you created where you need to isolate a subdomain. There sure is.

You can see the data for a particular subdomain by creating a segment. To create a segment for each subdomain, go to New Segment -> Advanced -> Conditions -> Hostname. I don’t know what your setup looks like.

I can say that the default Universal Analytics code is all you need, for both your main domain and subdomains. No special configuration to the code necessary. If you are using destination goals on a subdomain, you will need to update them.

Above I note how to use destination goals when tracking subdomains. By default, Google Analytics creates a new session when users navigate from one subdomain to another. To fix this, go to to Tracking Info -> Referral Exclusion List and add your domains.

Same issue as the question above, Google Analytics is creating a new session when users are moving from one subdomain to another. Make sure that all of your views are the same time zone. If they are in different time zones you will spend way too much time trying to figure out why the data appears incorrect.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions