Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #817492

    Amazon have created a new Affiliate code Called OnelLink which will link stores geographically so that a customer who views your US site from say UK will then get redirected to the product and then you get paid for sales in UK.

    It requires the code to be added in the Footer of each page

    The code is like this

    <script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=XXXXXXXXX”></script>

    How can I place this script in the footer of every page?

    #817623

    Hey Calcite,

    Please try this in your child theme’s functions.php file:

    function calcite_add_amazon_code(){ ?>
    <script src=”//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=XXXXXXXXX”></script>
    <?php }
    add_action('wp_footer', 'calcite_add_amazon_code');

    Best regards,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.