CrowdPower
  • πŸ‘‹Introduction
  • βœ…Getting Started
    • The Basics
    • JavaScript Tag
      • Identify Customer
      • Create Customer Event
      • Create Customer Charge
      • Create Customer Tag
      • Create Page View
      • Prompt for Push
    • Beacon API
      • Identify Customer
      • Create Customer Event
      • Create Customer Charge
      • Create Customer Tag
      • Track
    • Importing Customers
    • Basic Email Setup
    • Advanced Email Setup
  • πŸ“šResources
    • Smart Sending
    • Working with Sessions
    • Working with Traits
    • Working with Phone Numbers
    • Personalizing Messages
    • Push Notifications
    • Unsubscribe Groups
  • πŸ”ŒIntegrations
    • Discord
    • Slack
    • Stripe
    • Zapier
  • REST API
  • Console
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

JavaScript Tag

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

PreviousThe BasicsNextIdentify Customer

Last updated 3 years ago

Was this helpful?

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 .

<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.

βœ…
Settings