Robru Well-known member Nov 5, 2017 #1 Who can help me to make this script useful in XF2? Thank you. Code: <xen:if is="{$visitor.user_id}"> _paq.push(['setUserId', '{$visitor.username}']); </xen:if>
Who can help me to make this script useful in XF2? Thank you. Code: <xen:if is="{$visitor.user_id}"> _paq.push(['setUserId', '{$visitor.username}']); </xen:if>
Snog Well-known member Nov 5, 2017 #2 Code: <xf:if is="{$xf.visitor.user_id}"> _paq.push(['setUserId', '{$xf.visitor.username}']); </xf:if> Last edited: Nov 5, 2017 Upvote 0 Downvote
Code: <xf:if is="{$xf.visitor.user_id}"> _paq.push(['setUserId', '{$xf.visitor.username}']); </xf:if>
Snog Well-known member Nov 5, 2017 #4 I don't think you need the curly braces in the if, but they shouldn't hurt anything. Upvote 0 Downvote
Chris D XenForo developer Staff member Nov 5, 2017 #5 Snog said: Code: <xen:if is="{$xf.visitor.user_id}"> _paq.push(['setUserId', '{$xf.visitor.username}']); </xen:if> Click to expand... xen:if?! Upvote 0 Downvote
Snog said: Code: <xen:if is="{$xf.visitor.user_id}"> _paq.push(['setUserId', '{$xf.visitor.username}']); </xen:if> Click to expand... xen:if?!
Snog Well-known member Nov 5, 2017 #6 WHOOPS! Changed it. Damned tunnel vision strikes again. Upvote 0 Downvote
Robru Well-known member Nov 5, 2017 #7 Snog said: WHOOPS! Change it. Click to expand... How should it be? Upvote 0 Downvote
Snog Well-known member Nov 5, 2017 #8 Robru said: How should it be? Click to expand... I corrected my post... Code: <xf:if is="{$xf.visitor.user_id}"> _paq.push(['setUserId', '{$xf.visitor.username}']); </xf:if> Upvote 0 Downvote
Robru said: How should it be? Click to expand... I corrected my post... Code: <xf:if is="{$xf.visitor.user_id}"> _paq.push(['setUserId', '{$xf.visitor.username}']); </xf:if>