Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Need some help with google javascript

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
demon326
Smarty n00b


Joined: 24 Sep 2014
Posts: 1

PostPosted: Wed Sep 24, 2014 3:03 pm    Post subject: Need some help with google javascript Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP