To set custom dimensions in Google Analytics, you first need to log in to your Google Analytics account and navigate to the Admin section. From there, select the property where you want to set the custom dimensions.
Next, go to the "Custom Definitions" section and click on "Custom Dimensions." Click on the "+ New Custom Dimension" button to create a new custom dimension. Give your custom dimension a name and assign it an Index value.
Once you have set up your custom dimension, you will need to update your tracking code on your website to send the data to Google Analytics. You can do this by adding the custom dimension to your tracking code using the "set" method before the "send" method.
For example, if you want to track a custom dimension for user type, you would add the following code snippet to your tracking code:
ga('set', 'dimension1', 'Paid user');
Make sure to replace 'dimension1' with the index value you assigned to your custom dimension, and 'Paid user' with the value you want to track.
After making these changes, you will start seeing data for your custom dimensions in your Google Analytics reports. You can use custom dimensions to track specific user interactions or attributes that are important to your business.
How to set custom dimensions in Google Analytics for tracking campaign URLs?
To set up custom dimensions in Google Analytics for tracking campaign URLs, you will need to follow these steps:
- Log in to your Google Analytics account and navigate to the Admin section.
- In the Property column, click on "Custom Definitions" and then "Custom Dimensions."
- Click on the "+ New Custom Dimension" button to create a new custom dimension.
- Give your custom dimension a Name and select the Scope (hit, session, user, or product).
- Set the Active status to "On" and click "Create."
- Once the custom dimension is created, you will need to set up tracking parameters for your campaign URLs. You can do this by adding the custom dimension parameter to the URLs you are using in your campaigns. For example, you can add "?utm_custom=dimension_value" to the end of your URL.
- In your Google Analytics reports, you can now view the data collected for your custom dimension by navigating to the "Customization" section and creating a new custom report or using the custom dimension as a secondary dimension in your standard reports.
By setting up custom dimensions in Google Analytics for tracking campaign URLs, you can gather valuable data about your campaigns and measure their effectiveness more accurately.
How to set custom dimensions in Google Analytics for tracking device types?
To set custom dimensions in Google Analytics for tracking device types, follow these steps:
- Login to your Google Analytics account and navigate to the Admin section.
- Under the Property column, click on "Custom Definitions" and then "Custom Dimensions".
- Click on the "+New Custom Dimension" button.
- Enter a Name for your custom dimension, such as "Device Type".
- Set the Scope to "Hit" to track the device type for each individual pageview.
- Select the Active checkbox to enable the custom dimension.
- Click on the "Create" button.
- Note down the Index number assigned to your custom dimension.
- Implement the custom dimension tracking code on your website. You can use the following JavaScript code:
1
|
ga('set', 'dimension<Index Number>', 'Desktop'); // Replace <Index Number> with the actual Index number assigned
|
Replace 'Desktop' with the appropriate device type (e.g. Mobile, Tablet) in the code as needed.
- Save and publish your changes to your website.
- Once the custom dimension tracking code is implemented, you can view the device type data in Google Analytics reports by creating a Custom Report or using the custom dimension as a secondary dimension in standard reports.
How to set custom dimensions in Google Analytics for tracking page categories?
To set custom dimensions in Google Analytics for tracking page categories, follow these steps:
- Sign in to your Google Analytics account and navigate to the Admin section.
- In the Admin section, click on "Custom Definitions" under the Property column and then click on "Custom Dimensions."
- Click on the "+ New Custom Dimension" button to create a new custom dimension.
- Give your new custom dimension a name, such as "Page Category."
- Select the Scope for your custom dimension. For tracking page categories, you can choose "Hit" if you want to assign a category to each individual pageview.
- Click on "Create" to save your new custom dimension.
- Once the custom dimension is created, you will be provided with a "Index" number for the dimension.
- Implement the custom dimension in your tracking code. You will need to modify the Google Analytics tracking code on your website and pass the page category information using the custom dimension index.
For example, if you are using the Universal Analytics tracking code, you can add the following code to track the page category:
1
|
ga('set', 'dimension1', 'CategoryName');
|
Make sure to replace 'dimension1' with the index number of your custom dimension and 'CategoryName' with the actual category of the page.
- Save and deploy the updated tracking code on your website.
- Once the custom dimension is set up and implemented correctly, you will be able to see the page category data in your Google Analytics reports under the custom dimension section.
By following these steps, you can set custom dimensions in Google Analytics to track page categories and gain more insights into user behavior on your website.