“Staging without staging”
Burt can put your script in what we call “dev mode”. If the script is in dev mode, two things can happen:
burt-inject
has a value, the tracking will work just as expected.burt-inject
is not present, the script will not start.The purpose of dev mode is that the script can be deployed to the site
without affecting any visitor (because they do not have the
burt-inject
cookie set). This also allows a developer to work with
the script in the real environment without affecting any visitor.
The dev mode script requires all integration code to be wrapped in push-blocks. That means that instead of this:
The integration code should be wrapped with a push block, like this:
There can be any number of push blocks on the site.
To activate the burt script, give the cookie burt-inject
a value:
To deactivate it, remove the cookie value: