Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
In Configure Tracker Using Custom Code I have:
var s_visitStart = s.getVisitStart('sc_visit_start');
This throws the error:
Uncaught (in promise) TypeError: e.getVisitStart is not a function.
getVisitStart is a supported plugin according to appmeasurement documentation.
Solved! Go to Solution.
I was getting the same error due to confusion over where to place the plugin code. In short, the actual plugin code should be outside of the do
s.getVisitStart=newFunction(...);
s.usePlugins=true;
s.doPlugins=function(s) {
// usage here
}
Can't Get Analytics Plugins Working
View solution in original post
Views
Like
Replies
Likes