Manual Goal Setting


(khushboo) #1

Hi Trying to set goal selecting [ Goal is triggered Manually option ].

I have added below code for tracking goal:

var _paq = _paq || [];

/* tracker methods like “setCustomDimension” should be called before “trackPageView” */

window.addEventListener(‘beforeinstallprompt’, function (e) {
console.log(‘in beforeinstallprompt’);
_paq.push([‘trackGoal’, 1]);
});
_paq.push([‘trackPageView’]);
… /* track code continues */

When I goto the goal to see report (after performing action) there is no conversion found.
Please suggest what value I need to add instead of “1” in _paq.push([‘trackGoal’, 1]); so I can see the goal tracking.

Or kindly suggest if there is another way to do so.

Thanks in advance.