Page identification in divolte collector

27 views
Skip to first unread message

Tomasz

unread,
Oct 3, 2018, 9:11:17 PM10/3/18
to divolte-collector
Hi,
is there any functionality that allows identify page based on HTML source and not only the address
I have the case when the same or similar functionality is available on sites with

If we could use below
<script src="track.mysite.com/divolte.js" pageId="IdOfCurrentPage" defer async></script>
or any other meta tag value to get
IdOfCurrentPage with pageViews events it would solve my problem


tkoc...@gmail.com

unread,
Oct 3, 2018, 9:35:46 PM10/3/18
to divolte-collector
After re-reading documention I understand that I can use
<script src="track.mysite.com/divolte.js#IdOfCurrentPage" defer async></script>
for specific page and I will get pageview ID with all on my events

Am I right?

andre...@godatadriven.com

unread,
Oct 4, 2018, 3:44:53 AM10/4/18
to divolte-collector
On Thursday, 4 October 2018 03:35:46 UTC+2, tkoc...@gmail.com wrote:
After re-reading documention I understand that I can use
<script src="track.mysite.com/divolte.js#IdOfCurrentPage" defer async></script>
for specific page and I will get pageview ID with all on my events

Am I right?

You might be. ;)

This lets you assign a specific ID to all events within the page-view. A page-view starts when a page is loaded in a browser, and ends when the user navigates away or reloads the page. (If they later return to the same page a new page-view commences.)

So the identifier here is associated with a view of the page, not with the page itself. Normally this is auto-generated but this mechanism lets the server control the identifier when serving up the page to a client.

Hope this helps,

 - Andrew

tkoc...@gmail.com

unread,
Oct 5, 2018, 5:44:41 PM10/5/18
to divolte-collector
Thank you for explanation

Comming back to my problem - if I want to collect pageId - not pageViewId - what is recommended solution to do this?

Friso van Vollenhoven

unread,
Oct 8, 2018, 5:19:26 AM10/8/18
to divolte-...@googlegroups.com
Hi,
You can switch off the default pageView event in configuration (docs links). Then it's up to your page to log a page view event for every page. If your own JS has access to the pageId, you can log it as a custom event param.

Friso

--
You received this message because you are subscribed to the Google Groups "divolte-collector" group.
To unsubscribe from this group and stop receiving emails from it, send an email to divolte-collec...@googlegroups.com.
To post to this group, send email to divolte-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/divolte-collector/23977f25-f795-40ab-bbcf-d126ab621492%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages