# Amazon Affiliate code - where to paste?

**URL:** <https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636>\
**Category:** RapidWeaver Classic\
**Created:** [July 2, 2019, 5:44am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636 "2019-07-02T05:44:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![timtempest](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/timtempest/32/21603_2.png) [@timtempest](https://forums.realmacsoftware.com/u/timtempest)\
**Post date:** [July 2, 2019, 5:44am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/1 "2019-07-02T05:44:23Z")

</div>

Hi,

I’m going around in circles trying to figure our where to past the oneTag code Amazon affiliate code into my [website](https://www.themagiccrayons.com/blog/).

Amazon says: _Copy the oneTag JavaScript code and integrate into the footer/before the end tag of the body of your website._

In RW Code I only see pages for Prefix, head, and body.

I think i’ve tried pasting into Javascript before, but it says I shouldn’t paste script tags in there.

Any suggestions most welcome.

Thank you

---

<div class="post-metadata">

**Author:** ![NeilUK](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/neiluk/32/23434_2.png) [@NeilUK](https://forums.realmacsoftware.com/u/NeilUK)\
**Post date:** [July 2, 2019, 6:06am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/2 "2019-07-02T06:06:10Z")

</div>

What version of RW are you using? You should have the option for Javascript, as seen in the screenshot.

 ![25](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/2X/b/bb77150cd56ac03764b0b48abb5f9f133a35d715.png)

---

<div class="post-metadata">

**Author:** ![timtempest](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/timtempest/32/21603_2.png) [@timtempest](https://forums.realmacsoftware.com/u/timtempest)\
**Post date:** [July 2, 2019, 6:56am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/3 "2019-07-02T06:56:49Z")

</div>

Hi Neil,

I’m using RW7.

I do have the Javascript box, however the tag code looks something like…

\<div id="amzn-assoc-ad-7 etc etc \<script async src="etc etc

The Javascript box says not to add scripts, which the Amazon code includes.

My knowledge of scripts and code is limited to copy and pasting them :-/

Hopefully this makes more sense to you than me,

Thank you

---

<div class="post-metadata">

**Author:** ![NeilUK](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/neiluk/32/23434_2.png) [@NeilUK](https://forums.realmacsoftware.com/u/NeilUK)\
**Post date:** [July 2, 2019, 7:12am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/4 "2019-07-02T07:12:08Z")

</div>

The Javascript section says not to add the script tags `<script>`. You can paste Javascript in there but just leave the tags out.

I would just try to put the whole code in the footer section and see if it works. Sometimes these external scripts can be trial and error.

---

<div class="post-metadata">

**Author:** ![timtempest](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/timtempest/32/21603_2.png) [@timtempest](https://forums.realmacsoftware.com/u/timtempest)\
**Post date:** [July 4, 2019, 3:16pm UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/5 "2019-07-04T15:16:08Z")

</div>

Ni Neil,  
Thank you. I’ll give that a go.  
I’m not 100% that Amazon telling me the code isn’t working that they are correct. I’ll investigate.  
Thank you

---

<div class="post-metadata">

**Author:** ![timtempest](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/timtempest/32/21603_2.png) [@timtempest](https://forums.realmacsoftware.com/u/timtempest)\
**Post date:** [July 5, 2019, 1:40am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/6 "2019-07-05T01:40:26Z")

</div>

Hi Neil,  
I’m still trying to fix it…

By “put in the Footer section” do you mean manually add it to the footer of each page?

Thank you

---

<div class="post-metadata">

**Author:** ![NeilUK](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/neiluk/32/23434_2.png) [@NeilUK](https://forums.realmacsoftware.com/u/NeilUK)\
**Post date:** [July 5, 2019, 5:20am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/7 "2019-07-05T05:20:25Z")

</div>

Sorry, I meant try it in the “Body” section of the main code options.

---

<div class="post-metadata">

**Author:** ![timtempest](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/timtempest/32/21603_2.png) [@timtempest](https://forums.realmacsoftware.com/u/timtempest)\
**Post date:** [July 15, 2019, 4:16am UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/8 "2019-07-15T04:16:51Z")

</div>

Hi,  
Finally figured out why it wasn’t working, and below for anyone with a similar issue.

The Amazon code reads: script src=“[z-na.amazon-adsystem.com](http://z-na.amazon-adsystem.com) etc  
This needs to be manually edited to read: script src=“[https://z-na.amazon-adsystem.com](https://z-na.amazon-adsystem.com) etc.

All the Amazon ads in my [Teachers Blog](https://www.themagiccrayons.com/blog/) are display as they should (touch wood, cross fingers etc)

Thank you

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [August 14, 2019, 2:16pm UTC](https://forums.realmacsoftware.com/t/amazon-affiliate-code-where-to-paste/27636/9 "2019-08-14T14:16:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
