How to place your tracking code: Standard copy & paste
Note: This guide is for standard installation. Lucky Orange integrates with a variety of platforms that have different installation requirements and instructions. Use the links below to learn how to install Lucky Orange through Shopify, WordPress or BigCommerce, or click here for our full list of installation guides.
How to find your tracking code
Your tracking code is displayed in the last step of onboarding for non-Shopify users, but it's also available from Overview and Settings should you need it again.
Note: Lucky Orange's Shopify integration takes care of the code placement for you, so you won't need to add it manually yourself.
There are two places you can find your Lucky Orange tracking code: The Overview section of app and from Settings.
Overview
- Click on Overview from the left navigation. This will be the default page that opens unless you have previously bookmarked another page in the app.
- If you are in an Account Owner or Admin role, you'll see a card in overview that contains your tracking code. You can copy the code that displays within the “Install Lucky Orange” card.

Settings
- Click Settings from the main navigation
- Select Sites. You should see your site listed. If you have more than one site, you'll see them all listed in this view.
- Click View Details to open up the information drawer, including your tracking code. This will slide in from the right.
- Under your tracking code, click Copy Code to copy the code to add to your site.

To install your tracking code using copy & paste
Start tracking visitor behavior and better understanding what visitors experience on your website by adding a snippet of JavaScript-based tracking code to your website. We recommend adding your tracking code to your website from a desktop computer rather than a tablet or mobile device. To manually install Lucky Orange on your website:
- Copy your tracking code
- Find your website’s source file that contains the <head> section for your site.
- Paste your tracking code into your page’s source file just before the closing </head> tag. This is the optimal placement for the code.
Will I need to post the tracking code on all pages?
It depends on your website and overall design:
- If your website re-uses a common file, such as a page template, you likely will only have to place the tracking code once. Since this file would be used for common content across your site, the tracking code wouldn’t need to be placed multiple times.
- If your website is static with hand-coded pages, you may have to paste the tracking code into the <head> of each page you want to track.