Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Initialize the campaign using the campaign key from your campaign page. On the line below, nothing should ever need to change but the key
- var campaign = new Callpixels.Campaign({campaign_key: 'd7349e566d7ed03e3eb9a4a4863b582c'}); //assume we are using the US campaign
- default_number = "(888) 626-0428"; //This will be the default number to use, if function returns an error
- default_plain_number = "8886260428"; //This is the default plain version of that number (Make sure they are same
- if (getURLParameter('country') == 'FR') { //Change over to the France campaign
- default_number = "09 75 18 62 26"; //This will be the default number to use, if function returns an error
- default_plain_number = "+33975186226"; //This is the default plain version of that number (Make sure they are same
- campaign = new Callpixels.Campaign({campaign_key: 'FUTURE'}); //assume we are using the US campaign
- }
- if (getURLParameter('country') == 'AU') { //Change over to the Australian campaign
- default_number = "(07) 3106 8722"; //This will be the default number to use, if function returns an error
- default_plain_number = "+61731068722"; //This is the default plain version of that number (Make sure they are same
- campaign = new Callpixels.Campaign({campaign_key: 'FUTURE'}); //assume we are using the US campaign
- }
- if (getURLParameter('country') == 'GB' || getURLParameter('country') == 'UK') { //Change over to the United Kindom campaign
- default_number = "0113 320 5104"; //This will be the default number to use, if function returns an error
- default_plain_number = "+441133205104"; //This is the default plain version of that number (Make sure they are same
- campaign = new Callpixels.Campaign({campaign_key: 'FUTURE'}); //assume we are using the US campaign
- }
- if (getURLParameter('country') == 'NZ') { //Change over to the New Zealand campaign
- default_number = "06-880 3089"; //This will be the default number to use, if function returns an error
- default_plain_number = "+6468803089"; //This is the default plain version of that number (Make sure they are same
- campaign = new Callpixels.Campaign({campaign_key: 'FUTURE'}); //assume we are using the US campaign
- }
- if (getURLParameter('country') == 'ZA') { //Change over to the South Africa campaign
- default_number = "(08) 7550 9609"; //This will be the default number to use, if function returns an error
- default_plain_number = "+27875509609"; //This is the default plain version of that number (Make sure they are same
- campaign = new Callpixels.Campaign({campaign_key: 'FUTURE'}); //assume we are using the US campaign
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement