Snapchat Pixel (Snap Pixel) and Snapchat Conversions API | Snapchat Pixel Events Tracking
by Modvanta https://modvantaapps.tech/odoo-apps/snapchat-pixel/$ 29.91
Snap Pixel and Conversions API for Odoo eCommerce
Send product views, add to cart, checkout and purchase events to Snapchat from the browser and from the server, with the same event ID so each conversion is counted once - and only after the visitor accepts cookies.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
This module adds the Snap Pixel to your Odoo 19 website and sends shop events to it: product viewed, list viewed, search, add to cart, add to wishlist, checkout started, pay button clicked, purchase, sign up and form submissions.
Purchases can also be sent from the server through the Snapchat Conversions API, with the order number as event ID, so Snap deduplicates them with the browser event. Email, phone and customer ID are hashed with SHA-256 in Odoo before they are sent.
The pixel waits for Odoo's cookies bar, skips internal users and known bots, and every browser and server event can be logged in Odoo with its consent state and Snap's answer. A debug panel shows the events on the page itself.
Who it is for
Shops advertising on Snapchat Odoo eCommerce stores that run Snap ads and need reliable conversion counts. | Stores that care about consent Sites that must wait for cookie consent before tracking. | Marketers and developers People who want to see exactly which event was sent, when, and what Snap answered. |
Key features
All screenshots were taken on Odoo 19 with this module installed. The Snap Pixel script and the Conversions API were replaced by local stand-ins on this bench (the server answers come from the module's own Conversions API validator), with a placeholder pixel ID and token.
Feature 1
Pixel ID, token and a test event
Add your Pixel ID and, for server-side events, a Conversions API token. Send a server test event to check the token; the notification shows how many events Snap accepted.
Test endpoint and test event code per pixel
Server-side events: browser only, purchase from the server too, or every event
Feature 2
Choose the events
Switch each shop event on or off: product viewed, shop or category page viewed, search, add to cart, add to wishlist, checkout started, pay button clicked, purchase, account created, website form submitted, phone or email link clicked.
A page view on every page
Snap event name for form submissions
Feature 3
Purchase and product data
Count a purchase for confirmed orders only or also for orders waiting for payment, set a late confirmation window, include or exclude taxes and delivery, send new or returning customer, and choose the product ID sent.
Product ID prefix and category
Returning-customer window in days
Feature 4
Consent and advanced matching
Wait for the cookies bar, require consent for server events too, and skip internal users and known bots. Advanced matching sends email, phone and customer ID hashed with SHA-256 in Odoo.
Nothing personal leaves Odoo unhashed
Feature 5
Waits for cookie consent
With Wait for the cookies bar on, the pixel stays silent while Odoo's cookies bar is shown and starts once the visitor accepts optional cookies.
Click ID kept in a first-party cookie only after consent
Feature 6
Debug panel on the page
With debug mode on, open any page with ?snp_debug=1 and a panel lists the events sent on that page with their event IDs and parameters - here ADD_CART with item IDs, category, price and currency.
Shows consent state and whether the pixel script loaded
Feature 7
Checkout events with item data
START_CHECKOUT is sent on the address step with the item IDs, number of items, category, price and currency of the cart.
ADD_BILLING when the pay button is clicked
Feature 8
Event log: browser and server
When logging is on, every event appears in Odoo with date, channel (browser or server), event name, event ID, pixel, order, value, currency, consent, state and Snap's response.
Send again for failed server events
Personal data blanked after a set number of days
Feature 9
Server purchase with the request and answer
Each server event shows the tries, HTTP status, Snap's response and the exact request: event name, time, source URL, event ID, hashed user data and the products.
Order number as event ID for deduplication
How it works, step by step
| 1 | Install the module A Snap Pixel menu is added with its configuration and event log. |
| 2 | Add your pixel Paste the Pixel ID from Snap Ads Manager and, for server events, the Conversions API token. |
| 3 | Pick events and consent rules Choose the events, the purchase rule and whether to wait for the cookies bar. |
| 4 | Check it Send a server test event, then open your shop with ?snp_debug=1 and look at the event log. |
Settings
One configuration per website.
| Pixels | Pixel ID, label, Conversions API token, test endpoint, test event code. |
| Server-side events | Browser pixel only, purchase from the server too, or every event from the server too. |
| Events | Each shop event on or off, form event name, products per list event. |
| Count a purchase for | Confirmed orders only, or also orders waiting for payment. |
| Value includes taxes / delivery | How the purchase value is computed. |
| Product ID sent / prefix / category | Match your Snap catalog. |
| Wait for the cookies bar / Server events need consent too | Consent rules. |
| Do not track internal users / known bots | Keep your own visits out. |
| Debug mode / Log browser events / Keep logs / Erase personal data after | Diagnostics. |
Frequently asked questions
Is each purchase counted once?
Yes. Browser and server purchase events carry the same event ID (the order number), so Snap deduplicates them.
Does it respect cookie consent?
Yes. With Wait for the cookies bar on, nothing is tracked until the visitor accepts; server events can require consent too.
Is personal data hashed?
Email, phone and customer ID are hashed with SHA-256 in Odoo before they are sent.
How do I check it works?
Send a server test event from the configuration, open the shop with ?snp_debug=1 and look at the event log in Odoo.
Do I need a Conversions API token?
Only for server-side events. The browser pixel works with the Pixel ID alone.
Compatibility
Odoo 19 Community and Enterprise | eCommerce website_sale | Snap Pixel and Conversions API v3 | 87 tests run on install |
Measure your Snapchat ads from Odoo
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by e-mail |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Discuss (mail) • Invoicing (account) |
| Lines of code | 2174 |
| Technical Name |
mdv_snapchat_pixel |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/snapchat-pixel/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module