question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setVar not working in 1.8.6

See original GitHub issue

I am not seeing any variable I set via setvar()

this.ga.startTrackerWithId("UA-xxxxx-1", 1).then(() => { console.debug('Google analytics is ready now; this.ga.setVar('cn', 'as8eknlll') this.ga.debugMode() this.pageAndEventTracking(); }).catch(e => console.error('Error starting GoogleAnalytics', e));

in my debug it shows this:

09-28 19:38:10.094 D/GAv4 (27925): Hit delivery requested: ht=1538156290063, _s=2265, _v=ma12.4.51, a=123740524, aid=com.xxx.app, an=xxx, av=0.0.4, cd=blog, cid=xxx-xxx-xxx, ea=category, ec=xxx, el=xxx, ev=0, sr=1080x1920, t=event, tid=UA-xxxx-1, ul=en-nl, v=1

addCustomDimension() does seem to work just not setVar()

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
sarahtullycommented, Jan 25, 2019

@fishgrind I had this issue as well. You need to include the ampersand in the param: this.ga.setVar('&cn', ...)

1reaction
chilipotecommented, Sep 19, 2019

Wow ! Thanks so much @fishgrind , you saved my day !

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Server ':setvar' Error
The :setvar only works in SQL command mode, so you are possibly within normal SQL execution in the management studio and have not...
Read more >
sql server stored pro - setvar
Simply put, ':SETVAR' and '$' are used to declare variable and use variable in SQLCMD Mode. The ':SETVAR' only works in SQL command...
Read more >
sb3tosb2/sb3tosb2.py at master · RexScratch/sb3tosb2
Converts SB3 files to SB2 files. Contribute to RexScratch/sb3tosb2 development by creating an account on GitHub.
Read more >
ASTERISK-17866: [patch] MWI last-msgs-sent is mis-reported
Attaching a possible patch, which compiles, but which I have not yet tested. ... I've now load-tested this change with no obvious issues....
Read more >
Changelog - Open Stage Control
launcher: Ctrl+M keyboard shortcut not working; widgets: regression ... scripting: setVar not affecting all widgets when multiple widgets match provided id.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found