APIs & Integrations

jerome2792
Membre

Chatbot Google Analytics event

How can i trigger an event in google analytics when someone completes a chat in the chatbot successfully?

3 Réponses
Mike_Eastwood
Conseiller clé | Partenaire solutions Gold
Conseiller clé | Partenaire solutions Gold

Chatbot Google Analytics event

HI @jerome2792 

 

You can trigger a Workflow from a Bot (Professional or Enterprise only) in your Workflow you could trigger some Custom Code to Push the Google event.

 

With Enterprise packages you can execute code (Push to Google API).

 

Details: https://knowledge.hubspot.com/articles/kcs_article/conversations/a-guide-to-bot-actions

 

Unfortunately it doesn't look like Zapier has access tot he Bots yet...

 

Mike

znicholson
Participant

Chatbot Google Analytics event

How would you go about firing custom code in a regular workflow? I don't seem to be able to do so, even though I can trigger a workflow within a chatflow. 

0 Votes
Mike_Eastwood
Conseiller clé | Partenaire solutions Gold
Conseiller clé | Partenaire solutions Gold

Chatbot Google Analytics event

Hi @znicholson 

 

It depends on what version of HubSpot you have:

  • Older versions of HubSpot Marketing Pro can call a Webhook from Workflows
  • HubSpot Marketing Enterprise can still call a Webhook from Workflows
  • New Marketing Pro portals don't have Webhooks so we use a workaround...

To call external code we use a hidden property (set by a workflow or other event). We then set up a HubSpot App to watch for the change event on the hidden property. When the property changes we execute the code.

 

If that's a bit vague – not sure of your exact usecase – feel free to get in touch.

Mike

0 Votes