Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/set-ga-exclude-optional-dimensions

# Reduce GA Payload

By default, Whatfix does not send any data to Google Analytics (GA). However, you can configure Whatfix to capture content usage and engagement data using Google Analytics. For more information, see [Capture Whatfix analytics data using Google Analytics](/web/create-a-google-analytics-ga4-profile). However, if you also have a standard GA account for tracking these events, it could lead to differences in the data you see between the two platforms.

For example, consider that the timezone for Whatfix GA is set to Indian Standard Time (IST), while your standard GA could be set to another time zone. This difference in time settings can cause discrepancies when comparing data for specific date ranges.

---

#### What are custom dimensions?

Custom dimensions in Google Analytics are like custom tags you can attach to your data for better organization and analysis. For example, you may want to track which user role is using your application or which feature they're interacting with the most.

#### What is a payload?

When data is sent to Google Analytics, it's packaged into what's known as a payload. This payload contains various pieces of information, including the custom dimensions you've set up.

---

If your custom dimension setup is not consistent between Whatfix GA and your standard GA, it can impact the payload size. If the payload size becomes too large, Google may convert the method of sending data from [GET](https://www.w3schools.com/tags/ref_httpmethods.asp) calls to [POST](https://www.w3schools.com/tags/ref_httpmethods.asp) calls. However, POST calls can sometimes face security issues, such as [Content Security Policy (CSP)](https://content-security-policy.com/) restrictions, which could lead to blocked events or incomplete data being recorded in Customer GA.

To address this issue, you can either whitelist Google Analytics to send and receive data without any hindrance. If you choose not to whitelist the Google Analytics domain in your CSP configuration due to security concerns or privacy preferences, then you can enable GA Exclude Optional Dimensions to reduce the payload sent to Google Analytics. This reduces the amount of data sent to Google Analytics by using less intrusive GET calls instead of POST calls. However, some data may still be missed out because it's sent as POST calls, which could potentially be blocked by the CSP. This could lead to blocked events or incomplete data being recorded in Customer GA.

Use the following steps to reduce GA payload:

1. On the Whatfix Guidance dashboard, click **Settings**. ![ia\_left\_nav\_settings](/images/b8/ia_left_nav_settings-b868cdaa.png)

2. Click **Advanced customisation**. ![ia\_settings\_advanced configuration](/images/c0/ia_settings_advanced-configuration-c0ca1bbb.png)

3. Click **Technical configuration**. ![ac\_tech config.png](/images/ec/ac_tech-config-ec92a9c5.png)

4. Click **Add preferences**. ![tech config\_add prefrences.png](/images/bf/tech-config_add-prefrences-bfdc0f70.png)

5. Click **Analytics** ![tech config\_analytics.png](/images/ca/tech-config_analytics-ca20df86.png)

6. Select the **GA Exclude Optional Dimensions** checkbox. ![tech config\_enable ga exclude.png](/images/e2/tech-config_enable-ga-exclude-e2ee91b1.png)

7. Click **Add**. ![tech config\_add button.png](/images/ef/tech-config_add-button-ef8393cf.png)

8. Enable the **GA Exclude Optional Dimensions** toggle. ![tech config\_ga exclude toggle.png](/images/74/tech-config_ga-exclude-toggle-7404c936.png)

9. Click **Save**. ![tech config\_save.png](/images/3d/tech-config_save-3d3f631d.png)

## Related

- [Google Analytics Integration](/web/google-analytics-integration)
- [Google Analytics](/web/google-analytics)
