|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
demon326 Smarty n00b
Joined: 24 Sep 2014 Posts: 1
|
Posted: Wed Sep 24, 2014 3:03 pm Post subject: Need some help with google javascript |
|
|
Hi all,
i want to track user with the UID and when i use the google JS script, i get errors because of the brackets, i already use the literal tags for the main JS code, but since a UID is dynamic, i need to fill it in, and thats the problem.
My current code:
Code: | ga(‘set’, ‘&uid’,{ldelim}{{ $__wcf->getUser()->userID }}{rdelim});
|
It gives this error:
Quote: |
Message: Template compilation failed: unknown tag {{ $__wcf->getUser()->userID }} in template 'footer' on line 49
|
the problem is i need to escap the two {{ }} brackets, but the content has to be parsed. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|