The instructions below apply to API-Based integration.
If you are using Cookie-Based integration, please note that Crisp chat does not support it.
Not sure which instructions to follow? Start here: How to Check Which GA Connector Integration Type You’re Using.
Add Google Analytics data to Crisp Chat with GA Connector’s Crisp Chat integration.
Prerequisites
- Installed either the GA Connector WordPress plugin or GA Connector script on your website
- Uses Salesforce, Zoho CRM or Pipedrive as CRM
Add Custom Code
Right after the GA Connector code and the Crisp chat embed code, add the following script:
HTML
<script>
window.CRISP_READY_TRIGGER = function() {
$crisp.push(["on", "user:email:changed", function(email){
if(window.gaconnector2) {
gaconnector2.identify('email',email);
};
}]);
};
</script>That's it!