is there any way while pushing dataLayer i can enter the page url as well for page view event like below.
window.dataLayer.push({
‘url’: /my/custom/url,
‘event’: ‘stg.pageView’
});
i want to change page URL to custom, so that while watching goal user flow i can have flow according to URL i am sending
Yes but i want to have this url thing with default page view, i want it to consider it as a page view for virtual URL., Thanks i will try and update if it works
Let me brief you with the scenario i am working on, we have registration form popup which has like 12 fields , so for each field i am triggering a pageview event and i want to send custom url as well like for firstname it should be /registeration/desktop/firstname and so on for all other fields after successful completion of for i will send url as /registeration/desktop/success and this same url i will use inside Goals when i will create goal i will add page url contains /registeration/desktop/success this way i will have user flow for all fields and i can find out how much numbers are getting drooped from which fields .
After sending this event, make sure that you intercept it correctly in the tag manager by:
adding a variable that will read the CustomUrl
adding a new virtual page view tag with trigger set to the data layer event called customPageView
Of course, please make sure you use the newly created variable as the page url for your new virtual page view For the title of the page, you can use another JavaScript variable that will be set to document.title.
In the trigger, the event name constraint should be set to CustomPageView. I noticed that the consent type is set to Analytics. Are you using the consent manager? Does the tag fire in the debug mode?
I don’t understand why. Isn’t _paq initialised when the tag manager loads? Or is the initialisation only done when the main Piwik Pro basic tracking code is fired? And if this is the case, how can I override the page URL using the command queue?
The thing is that all the code is used asynchronously, once the ppms.js library is loaded. So, you can even configure parts of the Analytics tracking code before loading the Piwik PRO tag.