Hello. We use a Japanese affiliate service and were told that the following code would need to be added for each sale. We’d like to see if there is a way to automate this and enter just one code which will automatically update the “sales amount” & “order id” for each sale. If anyone could provide me with the code, it would be greatly appreciated!
//////////////
//// End ////
Wix works in javascript and not html code.
If you are wanting to add html code into Wix, then you need to be using an html iframe or a custom tool through the Tracking and Analytics section.
https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site
https://support.wix.com/en/article/embedding-custom-code-to-your-site
Note that Wix does not provide support for code that is from third party providers as they have not had the chance to test it fully works on their own system etc.
Therefore, if you still require more help with this issue, you are better suited going through your third parry code provider and their own support and asking them how they integrate it into Wix.
Important:
Wix cannot provide support for external codes that were not created or tested with Wix.
**If you are experiencing an issue with your code snippet, please contact the provider directly. **
Another possible way would be to add it through a html component and use Wix Corvid to pass data to and from the page and the html component.
https://www.wix.com/corvid/reference/$w.HtmlComponent.html
https://support.wix.com/en/article/corvid-working-with-the-html-element
@givemeawhisky Thank you very much for your thoughtful responses! We will enter this code in the Wix Analytics section. I will check out all the resources provided and see if we may be able to find a solution to this. Thank you again!