With @codeqr/analytics, you can track lead and sale conversions on your Shopify store, enabling you to measure the effectiveness of your marketing campaigns. You can add the @codeqr/analytics script to your Shopify store simply by installing the CodeQR Shopify App from the App Store.
The connection status in the CodeQR Conversions app
Then, make sure to activate the @codeqr/analytics script by following these steps:
  1. Navigate to your Shopify admin panel.
  2. Go to Online Store > Themes.
  3. Click on Customize for your current theme.
  4. In the theme editor, select the App embeds tab.
  5. Locate the Analytics Script for the CodeQR Conversions app and toggle it to activate.
Enable the CodeQR Analytics script in your Shopify theme
You can verify the installation with the following tests:
  1. Open the browser console and type in _codeqrAnalytics – if the script is installed correctly, you should see the _codeqrAnalytics object in the console.
  2. Add the ?cq_id=test query parameter to your website URL and make sure that the cq_id cookie is being set in your browser.
If both of these checks pass, the script is installed correctly. Otherwise, please make sure:
  • The analytics script was added to the <head> section of the page
  • If you’re using a content delivery network (CDN), make sure to purge any cached content

Installation video

Here’s a video showing how to install and activate the @codeqr/analytics script in your Shopify store: