JavaScript Tag

The CrowdPower JavaScript Tag is a web beacon that monitors and records user activity and sends it securely to your CrowdPower project.

Variables throughout this documentation are denoted with brackets. For example: '<name>'. You must provide this information from your application without the brackets. For example: 'Peter Gibbons'.

To initialize the JavaScript tag, paste this code before the closing body tag on your website. You can retrieve your project’s public key in Settings.

<cp-root></cp-root>
<script>
  window.cp=window.cp||function(){(cp.q=cp.q||[]).push(arguments)};
  window.cp('init', '<project_public_key>');
</script>
<script async src="https://tag.crowdpower.io/js/app.js"></script>

Once the JavaScript tag is installed, you will be able to send customer data to CrowdPower using the methods outlined in the following pages.

Last updated