• Resolved chrisheinonen

    (@chrisheinonen)


    I’m trying to setup mobile popovers to work, but if Autoptimize is enabled, they fail. If I disable Autoptimize, they work again. This is the script that’s in footer.php, right before the </body> tag:

    <script type="text/javascript">
        amzn_assoc_ad_type = "link_enhancement_widget";
        amzn_assoc_tracking_id = "rhtpopover-20";
        amzn_assoc_linkid = "074ae4db4c4d3dc6dbff30e841b81f14";
        amzn_assoc_placement = "";
        amzn_assoc_marketplace = "amazon";
        amzn_assoc_region = "US";
    </script>
    <script src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&Operation=GetScript&ID=OneJS&WS=1&MarketPlace=US"></script>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Is there something I need to change to keep this from not working with Autoptimize?

    • This topic was modified 7 years, 5 months ago by bdbrown.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    as per the FAQ exclude that JS from autoptimization @chrisheinonen by either adding amzn_assoc_, ws-na.amazon-adsystem.com to the comma-separated JS optimization exclusion list OR by wrapping that entire block of code in nopitimize-tags;

    <!-noptimize->
    — your code here —
    <!-/noptimize->

    hope this helps,
    frank

    carriezumba

    (@carriezumba)

    I am trying to join the Amazon Affiliate program and use their smart phone connecter. I followed these directions EXACTLY:

    WordPress
    Login to your WordPress account.
    Go to the dashboard of your blog page.
    Click on “Appearance → Editor” on the left pane.
    Select Footer.php file from the right pane under templates.
    Add the popover ad code before </body> tag in the template.

    When I do this – the following error is what I see:

    “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”

    What do I do?

    Plugin Author Frank Goossens

    (@futtta)

    sorry @carriezumba but I’m afraid I can’t help you; this section of the support forum is for questions related to Autoptmize and I have no idea what might be happening with the change. might be best to have a developer have a look really.

    carriezumba

    (@carriezumba)

    where would I find a developer to ask?
    thank you for your help!
    Carrie

    evidently because i had optimized wordpress through hostgator – only their techs could access and alter my code!
    which they did – so now i have it!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Amazon Associates Mobile Popover’ is closed to new replies.