I want to fire a
fbq('track', 'PageView');
event (and its noscript counter part). However, I want to specify the URL that is viewed myself, since the "PageView" in question is actually an overlay and its content is loaded via an XHR request (and the URL stays the same).
However, I am wondering if this is possible at all. The documentation for the custom parameters don't mention anything about a custom URL for the PageView
event for example.
Would this work, if I added
window.history.pushState({"html":…},"", this.url);
for example, so the URL of the (AJAX loaded) overlay is also in the browser's history and thus the tracking ov PageView
uses this URL as well?
fbq('track', 'eventName', {myCustomURL: 'http://stackoverflow.com'});
PageView
event.PageView
event, with a custom URL.