Skip to content

Instantly share code, notes, and snippets.

View zionskynet's full-sized avatar

ZionSky Developer zionskynet

View GitHub Profile
@zionskynet
zionskynet / voluum-funnelish-javascript-tracking.html
Last active August 24, 2025 14:45
Voluum and Funnelish Events Tracking Integration. JavaScript and Server-Side (PHP) Tracking Code for sending "begin checkout" and "purchase" events
<!-- sale page/user entry point - Voluum postbacks -->
<script>
document.addEventListener('DOMContentLoaded', async function(event) {
try {
const url = new URL(window.document.location.href),
utmMedium = url.searchParams.get('utm_medium'),
xoClickId = url.searchParams.get('utm_term');
if (utmMedium === 'xo' && xoClickId) {
// init user data
localStorage.setItem('utmMedium', utmMedium);
@zionskynet
zionskynet / voluum-gtm-tracking.html
Created August 24, 2025 14:04
Voluum and GTM Events Tracking Integration JavaScript Code. This code will send a add_to_cart, begin_checkout and purchase events to your Voluum tracker. Make sure your Voluum events have appropriate names.
<!-- page view -->
<script>
// init user data
(function () {
try {
var url = new URL(window.document.location.href),
utmMedium = url.searchParams.get('utm_medium'),
xoClickId = url.searchParams.get('utm_term');
if (utmMedium === 'xo' && xoClickId) {
localStorage.setItem('utmMedium', utmMedium);
@zionskynet
zionskynet / voluum-checkoutchamp-tracking.html
Last active August 24, 2025 13:28
Voluum and CheckoutChamp events tracking integration code. It's based on JavaScript and sends events from a user's browsers. Each piece of code needs to be used on different pages in your CheckoutChamp funnel.
<!-- sale page/user entry point - Voluum postbacks -->
<script>
document.addEventListener('DOMContentLoaded', async function(event) {
try {
const url = new URL(window.document.location.href),
utmMedium = url.searchParams.get('utm_medium'),
xoClickId = url.searchParams.get('utm_term');
if (utmMedium === 'xo' && xoClickId) {
// init user data
localStorage.setItem('utmMedium', utmMedium);
@zionskynet
zionskynet / shopify-customer-events-pixel.js
Last active August 24, 2025 13:28
Voluum and Shopify events tracking integration code. It's based on native Shopify Customer Events, and it really works without any issues.
// https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/code
// https://shopify.dev/docs/api/web-pixels-api/standard-events
function getPostbackURL() {
try {
const utmMedium = localStorage.getItem('utmMedium');
const xoClickId = localStorage.getItem('xoClickId');
if (utmMedium === 'xo' && xoClickId) {
return 'https://your-voluum.domain/postback?cid='+xoClickId;
}
@zionskynet
zionskynet / cordova-android-dependencies.sh
Last active November 23, 2024 12:06
Bash script to install Cordova Android development environment with all dependencies on Ubuntu 24.04
#!/bin/bash
# run as root user
# chmod +x cordova-android-dependencies.sh
# ./cordova-android-dependencies.sh
# this script will install
# - java 17 (openjdk-17-jdk + openjdk-17-jre)
# - gradle 8.10.2
# - sdkmanager "platforms;android-34"
# - sdkmanager "build-tools;34.0.0"