Download the PHP package brew-bytes/acorn-conversion-pixels without Composer

On this page you can find all versions of the php package brew-bytes/acorn-conversion-pixels. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package acorn-conversion-pixels

Acorn Conversion Pixels

A theme-agnostic Acorn package that wires advertising pixels for Sage themes — Meta, LinkedIn, TikTok, Pinterest, X (Twitter), Reddit, and Snap. Drop in your IDs, ship to production, no per-project script tag boilerplate.

Built as a sibling to brew-bytes/acorn-analytics: fire analytics:event once and the unified bridge fans the event out to every configured pixel.

What it does

Pixel Global Env var Custom event API
Meta (Facebook / Instagram) fbq META_PIXEL_ID fbq('trackCustom', name, data)
LinkedIn Insight lintrk LINKEDIN_PARTNER_ID conversion-ID routed (see config)
TikTok ttq TIKTOK_PIXEL_ID ttq.track(name, data)
Pinterest pintrk PINTEREST_TAG_ID pintrk('track', name, data)
X (Twitter) twq X_PIXEL_ID twq('event', name, data)
Reddit rdt REDDIT_PIXEL_ID rdt('track', name, data)
Snap snaptr SNAP_PIXEL_ID snaptr('track', name, data)

Empty/missing IDs no-op silently — only configured pixels render.

Differences from acorn-analytics

This package shares the same modular shape and depends on acorn-analytics for the analytics:event bridge, but it's deliberately stricter on consent:

Installation

acorn-analytics comes along automatically as a dependency. Add the IDs you want to your .env:

Custom events

Same analytics:event API as acorn-analytics:

…or:

The bridge fans events out to every pixel that's loaded:

Standard event names

Each platform has its own "standard event" vocabulary (Meta has Purchase, TikTok has CompletePayment, etc.). For v0.1 the package passes event names through verbatim — manage name translation in each platform's dashboard:

A future v0.2 may add an explicit mappings config block for stricter platform-side standard-event matching.

LinkedIn (special case)

LinkedIn's Insight Tag doesn't have a generic custom-events API — conversions are configured by ID in LinkedIn Campaign Manager and fired via lintrk('track', { conversion_id }). Map your event names to LinkedIn conversion IDs in the config:

The package outputs a small dispatcher that routes mapped events to the correct conversion ID. Unmapped events simply don't fire to LinkedIn.

Cookie consent integration

Defaults to consent.required => true. Configure the JS event your consent UI emits:

Common consent platforms:

Platform Event name
Custom UI cookie-consent:granted
OneTrust OneTrustGroupsUpdated
Cookiebot CookiebotOnAccept
Cookieyes cookieyes:accepted

To opt out of consent gating (e.g., your consent UI handles loading order itself), set consent.required => false. Don't ship advertising pixels without consent gating in GDPR/CCPA jurisdictions unless you have legal clearance.

A note on PII

The bridge passes the analytics:event detail payload through to each pixel verbatim. If you're using acorn-analytics's auto-tracking module, the default phone_click and email_click events include the literal phone number / email address from the clicked link.

For a typical business site this is your own published contact info — not visitor PII. For sites where contact links come from user input (vCard exports, marketplace seller profiles, etc.), those values would be visitor PII. Meta in particular flags PII in custom event params and can throttle / suspend pixels that send unhashed contact info.

If your site mixes user-input contact links with pixel forwarding, either disable the relevant auto-tracking sub-features in acorn-analytics, or extend the bridge to redact / hash sensitive fields before dispatch.

What it doesn't do

Requirements

License

MIT © Brew & Bytes


All versions of acorn-conversion-pixels with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
brew-bytes/acorn-analytics Version ^0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package brew-bytes/acorn-conversion-pixels contains the following files

Loading the files please wait ...