make sure to follow the instructions on the target template page: https://docs.adobe.com/help/en/target/using/experiences/vec/modifications/experience-templates.html
thanks, I couldn't get my code to function properly however I did find out how I needed to code it from the template page: https://docs.adobe.com/help/en/target/using/experiences/vec/modifications/experience-templates.html
I also noticed that if I fire an s.tl event before the global s.t beacon fires then the pageLoad setVariables fire on the linkClick instead of the global pageLoad rule beacon. Would kind of negative data impact would this create?