# Dynamically add a URL parameter to any links for a specific domain

286 views
in Q2A Core

I have an affiliate partnership with a website. Let’s call it [example.com]. I’d like to automatically add an affiliate parameter [?me=1234] to the URL whenever an answer with a link to [example.com] is posted. I assume this can be done with javascript, but I haven’t been able to make scripts like this one work. I get the following error, which leads me to believe I haven’t installed jQuery properly in Q2A:

Uncaught ReferenceError: jQuery is not defined
Q2A version: 1.8.3