Support » Plugin: Amazon Auto Links - Amazon Associates Affiliate Plugin » Require support for Multiple Amazon Associate Locales.

  • First of all, this is an amazing plugin, a great effort to allow WordPress users to take advantage of Amazon latest offers. I have not seen this feature anywhere else on WordPress so far. However there are two issues that I want to raise to help you improve the plugin.
    First issue is that I do not see any option to handle visitors from multiple locales, as I can only select single locale for each unit an that is visible to users from all locales, however I suspect I will have to do some custom coding to check visitor GEO and display appropriate ad unit based on its local to present right affiliate link. I do not see any option in the plugin for this very task.

    2nd issue I see is with impression count, Amazon associates impression counter does not seem to work on SSL based websites, as it embeds js script over “http” instead of “https” protocols that is blocked due to strict mixed contents browser policy. Please explain any workaround for this issue as well.

    Regards,
    Aamir

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Regarding the first issue, there are some plugins that do the job so you may want to try them.

    https://wordpress.org/plugins/bestazon/
    https://wordpress.org/plugins/amazon-affiliate-link-globalizer/
    https://wordpress.org/plugins/amazon-link-engine/

    As for the second issue, as you already know, if a web page displayed with the HTTPS protocol contains an SRC embedded element with HTTP, the content policy error occurs.

    The script address that Amazon gives (which seems to be no longer officially offered) for the US locale is http://ir-na.amazon-adsystem.com/s/impression-counter?tag=%your-tag%&o=1 and the HTTP protocol is used. Changing it to https successfully loads the script but the loaded script contents have another embedded SRC element with HTTP.

    var amazon_impression_url   = "www.assoc-amazon.com";
    
    var amazon_impression_campaign = '211189';
    var amazon_impression_ccmids =  {
        'as2'  : '374929',
        '-as2' : '9325',
        'am2'  : '374925',
        '-am2' : '9325',
        'ur2'  : '9325'
        };
    
    document.write("<scr"+"ipt src='http://" 
        + amazon_impression_url 
        + "/s/impression-counter-common.js' type='text/javascr"+"ipt'></scr"+"ipt>");

    I uploaded a development version, v3.5.6b02. And it just changes http to https for the impression counter script address but not the script contents. You may still get the error but want to try to see if the error goes away.

    Thanks for the response, however above mentioned solution is not viable or suitable with this plugin regarding globalization of Amazon affiliate links.
    First they try to replace product links that are available on each page load with the locally available links for the current visitor.
    This is not suitable with your plugin because the main feature of this plugin is to fetch most famous today’s deals as mentioned by criteria in an Ad unit. And above mentioned plugin will try to match the products that may not be available on other locales or even if available may not have that much attractive deal that is selected by your Ad Unit.
    2nd they all change page contents via some the_content hook or others that may not work page level caching like we have with WP Supercache also pages cached at CDN edges.

    For me the best solution that I have not found over internet so far is to create ad unit for each available local (using your plugin that is awesome for this purpose) and then display ad unit via ajax based on current visitor location. So we can display Ad Unit build for UK to UK visitors and same for others. I think way we can reduce page load time, Page Size and Requests size by loading ad related resources Asynchronously.

    I will try the Dev version for Impression Counter issue and let you know the outcome. You may check the Horizontal as well as Vertical layout ad unit on below page.
    https://gilli.tv/videos/recent-videos/

    Plugin Author miunosoft

    (@miunosoft)

    Hello,

    For the first issue, I’m not sure if I understood what you say but creating additional localized 12 units per unit is just overkill for majority of users. And some of the mentioned plugins may be JavaScript based if I recall correctly, meaning handled on the client side after the page contents are displayed so in that case page caching methods do not matter.

    For the second issue, let me know how it goes.

    Thanks for the response, I have done some initial work regarding the 1st issue I mentioned above,

    This is the ad-code that I have built, a jquery function reads all the ad tags available on a page and send ajax request to server to load return appropriate ads based on user location. Currently I have added ad units for two locales that is UK and US while US unit is treated global tag means if system do not have ad unit for current user location it will display ad unit from US.

    <ins class=”adsbygilli”
    style=”display:block”
    data-ad-slot=”528288″
    data-uk=”532793″
    data-gb=”532793″
    data-ad-format=”amazon_horizontal_unit”>

    I see several advantages to this approach.
    * No additional plugin required to redirect users from different locales.
    * We have native product offers for each local, as One product may have attractive offer in one local while may not be available on others. However this plugin presents much better results as it displays products directly from current user local store.
    * Asynchronous loading of ad units, hence increased user experience and page load time as well as lower server load.
    * Option to display ad units from other affiliate programs where Amazon is not available.
    * Loads all ad tags present on a page in a single ajax request.
    The list goes on…

    Take a look at below url.
    https://gilli.tv/videos/recent-videos/

    Regarding 2nd issue, the Impression counter did not work on https, however this is not the priority as we can use google analytics for this purpose by adding one line code.

    Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Thanks for your suggestion. I may give it a thought.

    aamir2007

    (@aamir2007)

    Another issue that I had to face, was the unusual keywords were showing in search results and search ranking was dropped while using conversational ad units from this plugin. Fetching it via AJAX have restored my ranking in search results on my original keywords.
    As you can see my site niche does not suite Amazon Contextual Ad units provided by Amazon Affiliate in this case Category based Ad units from this plugin that fetches latest attractive offers from Amazon best suits.

    Let me know if you want I can share jquery and php codes that you can use to implement this feature withing the plugin.

    Plugin Author miunosoft

    (@miunosoft)

    You are definitely welcome to post your code that solves your problems, which may help other users. In that case, please create a new topic for that. It will be helpful for future forum visitors to find information they look for if a forum thread is created for one issue.

    Thank you.

    aamir2007

    (@aamir2007)

    Sure, will create one and share my code.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Require support for Multiple Amazon Associate Locales.’ is closed to new replies.