searchdiscovery / Apollo-Documentation-Xactly-Corp

An Apollo generated Event Driven Data Layer
0 stars 0 forks source link

Page Load Started #16

Open rossozburnsdi opened 1 year ago

rossozburnsdi commented 1 year ago

Page Load Started

User loads any page on the site

Page Load Started > Page Load Completed

Javascript Code

window.dataLayer = window.dataLayer || [];
dataLayer.push({ page_data: null });  // Clear the previous page_data object.
dataLayer.push({
  "event": "page_load_started",
  "detailed_event": "Page Load Started",
    "page_data": {
        "breadcrumb": "<breadcrumb>",
        "country": "<country>",
        "language": "<language>",
        "page_location": "<page_location>",
        "page_title": "<page_title>",
        "site_section": "<site_section>",
        "site_section2": "<site_section2>"
    }
});
milind0299 commented 1 year ago

Hi @rossozburnsdi ,

Have a doubt where what comes under side_section and site_section2 Could you please give an insight.

Thanks

milind0299 commented 1 year ago

Hi @rossozburnsdi ,

Moving this to SDI Review. Site to test : http://xactlystg.prod.acquia-sites.com/

Thanks

jerry-bennett commented 1 year ago

Tested on: http://xactlystg.prod.acquia-sites.com/

Use case: Viewed lots of different pages throughout the website.

Status: Event fires correctly on each page, but the "country" variables seems to always be "US" even when I connect from a VPN.

Image

rossozburnsdi commented 1 year ago

@milind0299 site section should be the break out of the URL by subdirectory.

Using the screenshot here are the values we are looking to have in site_section site_section: "products" site_section2: "incentive-compensation-management-software"

milind0299 commented 1 year ago

Hi @rossozburnsdi ,

We have fixed this in our local environment, will move it to stg upon our QA approval.

Thanks.

milind0299 commented 1 year ago

Hi @rossozburnsdi ,

This is now fixed, please let us know for any queries.

Thanks

rossozburnsdi commented 1 year ago

@milind0299 I'm see the page_load_started event code on the site but we're not seeing the event in the data layer.

We have cleared browser data and cleared cache but still are not seeing the event

Image

milind0299 commented 1 year ago

Hi @rossozburnsdi ,

Please check now, it has been fixed.

Thanks

jerry-bennett commented 1 year ago

ROUND 2 QA: @rossozburnsdi

Tested on: http://xactlystg.prod.acquia-sites.com/

Use case: loaded page and accepted cookies.

Status: Seeing some issues, no values for 'breadcrumb' or 'site_section2' additionally, not seeing the event in the network call either. Tag is firing in GTM correctly though.

Image

rossozburnsdi commented 1 year ago

Not seeing breadcrumb in the Data layer event across all pages. Will confirm we Xactly if this is a blocker

Image

rossozburnsdi commented 1 year ago

Ignoring breadcrumb for now. Will use site_section parameters for reporting

jerry-bennett commented 1 year ago

PROD QA: @rossozburnsdi

Tested on: https://www.xactlycorp.com/

Use case: Loaded page and checked network and console tabs.

Status: Looks good, seeing everything fire.

Image