How to setup PixelFlow with 3rd party cookie consent plugins

1. In the "Configure" page, ensure setup mode in "General Settings" is set to "Full"

2. In the "Scipts" tab, you'll see the PixelFlow script (starts with <script src="https://slrgkgulru.pixelflow.so/pfm.js"...) listed as "Uncategorised script". Select "Marketing" as the category and then Publish the site to save your changes.

Setup PixelFlow with CookieBot

To setup PixelFlow with CookieBot CMP, you simply need to add two lines of code to your script to declare its purpose: Valid values for data-cookieconsent are

  • "preferences"

  • "statistics"

  • "marketing"

  • "ignore"

You can also use a combination of these categories (with the exception of "ignore"), for example data-cookieconsent="statistics, marketing".

"necessary" or "unclassified" are not valid values and should never be used. Instead necessary scripts should simply not be marked up.

If you add "marketing" to your script, Cookiebot will only run it after the user accepts Marketing cookies.

Example:

This is how your script may look beforehand:

<script
  src="https://slrgkgulru.pixelflow.so/pfms.js"
  data-meta-pixel-ids='["2345734567345673"]'
  data-site-id="1745674fs3245gw2t2gzs"
  data-api-key="5d74cc8455678566788b0b2cb32081ae42233"
  data-currency="USD"
  data-api-endpoint="https://api.pixelflow.so/event"
  data-tracked-urls='[{"url":"https://www.yoursite.com/","event":"ViewContent"}]'
  data-blocking-rules='[{"no_fbc":true}]'
  data-enable-meta-pixel="true"
  data-debug="true"
  async
></script>

And this is how your script will now look afterwards:

<script
  type="text/plain"
  data-cookieconsent="marketing"
  src="https://slrgkgulru.pixelflow.so/pfms.js"
  data-meta-pixel-ids='["2345734567345673"]'
  data-site-id="1745674fs3245gw2t2gzs"
  data-api-key="5d74cc8455678566788b0b2cb32081ae42233"
  data-currency="USD"
  data-api-endpoint="https://api.pixelflow.so/event"
  data-tracked-urls='[{"url":"https://www.yoursite.com/","event":"ViewContent"}]'
  data-blocking-rules='[{"no_fbc":true}]'
  data-enable-meta-pixel="true"
  data-debug="true"
  async
></script>

Was this helpful?