A Silverstripe module to add HubSpot Tracking Code and manage per SiteConfig (CMS) & Page extension.
- Silverstripe ^4, SiteConfig
`composer require lerni/hubspot`
You need to set the extensions in your config.
SilverStripe\SiteConfig\SiteConfig:
extensions:
- Kraftausdruck\Extensions\HubSpotConfigExtender
SilverStripe\CMS\Model\SiteTree:
extensions:
- Kraftausdruck\Extensions\HubSpotRequestExtender
Run dev/build
either way.
Set the ID (~7 digits) in yoursite.tld/admin/settings and you're set.
- Trackingcode 'll only be shown in live-mode.