Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- isset( $_GET[‘clickid’] ) ? $click_code = $_GET[‘clickid’] : $click_code = ‘0’;
- ?>
- <script type="text/javascript">
- (function (document, window) {
- // Declaring script and what should happen on load
- var script = document.createElement("script");
- script.type = "text/javascript";
- script.src = "https://api.pushnami.com/scripts/v1/pushnami-adv/Key";
- script.onload = function() {
- Pushnami
- .update({
- "binomid": "<REPLACE WITH YOUR VARIABLE>"
- })
- .prompt()
- // Listen for opt-in event
- Pushnami.on(['permissions-action-subscribed-new'], function() {
- var request = new XMLHttpRequest();
- request.onreadystatechange = function() {
- if (request.readyState == XMLHttpRequest.DONE) {
- }
- }
- request.open("GET", "https://postback.com/click.php?cnv_id=<?php echo $click_code; ?>", true);
- request.send(null);
- });
- };
- // load the script
- document.getElementsByTagName("head")[0].appendChild(script);
- })(document, window);
- </script>
- <link rel="manifest" href="/manifest.json">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement