@cloudflare/util-adwords
v1.0.28
Published
Cloudflare Google AdWords Util
Downloads
4,188
Maintainers
Keywords
Readme
cf-util-adwords
Cloudflare Google AdWords Util
Installation
$ npm install cf-util-adwords
Usage
import adwords from 'cf-util-adwords';
adwords
.track(process.env.ADWORDS_CONVERSION_ID, {
// parameters...
})
.then(function() {
// success loading script
})
.catch(function() {
// error loading script
});
If you want to override google_remarketing_only
you can optionally pass a
third parameter:
adwords.track(
process.env.ADWORDS_CONVERSION_ID,
{...},
true // optional, defaults to `false`
);