This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |