Help Center

Placing the BlueConic script on your website pages

How to add the BlueConic script to your website and channelsTo use BlueConic with your website, you need to place the BlueConic JavaScript tag on all pages that you want to use BlueConic to collect data or interact with users.

The format of your BlueConic script differs slightly depending on whether you use custom first-party BlueConic hostname (for example, or the hostname provided by the BlueConic CDN server (for example, 

Sites using first-party BlueConic hostnames

If your site uses a custom first-party BlueConic hostname, place the following line of code as high as possible inside the <head> section on every page of your channel(s), as described in the email from BlueConic:

<script src="https://[]/script.js"></script>


If your site uses a custom first-party BlueConic hostname, for example, your script would resemble this example, where h854 is the first-party BlueConic hostname and is your domain name. 

<script src=""></script>

For information on using the First-Party Hostname Console to create BlueConic hostnames, see BlueConic hostnames overview and Creating and configuring BlueConic hostnames.

Sites using for the CDN

If your site uses standard hostnames, place the following line of code as high as possible after the <head> tag of your pages:

<script src="[yourscriptname].js"></script>

The [yourscriptname] in the code above should be the hostname of your BlueConic server.


If you access your BlueConic server at, use the hostname part of your URL as replacement which results in:

<script src=""></script>

This would look as follows in a webpage:

<!DOCTYPE html>
    <script src=""></script>
    <meta charset="UTF-8">
    <script src="/script/jquery.min.js"></script>
... </head> <body> ... </body> </head>

Once you have the tag in place, congratulations! You are now ready to start using BlueConic!

Our script is being served by Amazon CloudFront and will not be impacted by high traffic volume on your websites.

This is the recommended way to add the BlueConic tag to your pages. We also support alternative methods to place the tag. See BlueConic JavaScript tag alternatives to learn more.


Was this article helpful?
0 out of 1 found this helpful