Skip to content

Instantly share code, notes, and snippets.

@1cg
Created June 9, 2017 16:36
Show Gist options
  • Save 1cg/79af670cd424cbbf5186cd126a9438ca to your computer and use it in GitHub Desktop.
Save 1cg/79af670cd424cbbf5186cd126a9438ca to your computer and use it in GitHub Desktop.
LeadDyno/Chargebee integration:
Javascript on client site (with links to chargebee):
<script>
LeadDyno.key="YOUR PUBLIC KEY"; // public LeadDyno API key
LeadDyno.recordVisit();
LeadDyno.autoWatch();
LeadDyno.initChargebee(); // <-- updates all chargebee links with tracking id
</script>
In chargebee:
Settings -> Webhook Settings
* Add new webhook
* Name: "LeadDyno"
* Webhook URL: https://collector.leaddyno.com/chargebee_webhook?key=YOUR_PRIVATE_KEY (Substitute your private Leaddyno API key here!)
* Select "V2"
* Click "Create Webhook"
That should be it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment