[Need some help regarding Hubspot customized trackign code]
We have customized our Google Analytics and Hubspot tracking codes so that when someone clicks on "I agreed" button ONLY then GA and Hubspot tracking code should trigger.
Now even people are clicking on "I agreed" button, Google Analytics code is triggering fine BUT hubspot code is not triggering every time (As a result showing only 20-25% traffic).
I've generated ticket regarding this issue on Hubsot support but they are unable to resolve the issue and asked me to post the Query here in this developer community.
Hubspot support says that since we have done some customization in the Hubspot tracking code, as a result its not working.
We are looking for such a customized code which must trigger once visitor gives consent.
You can check the current customized hubspot code by viewing source of www.ascertia.com.
Please note that must use our customized banner as consent taking pop up. We can't use Hubspot consent banner as it does not allow Google Analytics code to trigger also.
Looking for possible solution as sson as possible because this issue is becoming a blocker for us and we are not getting right stats from Hubspot.