searchdiscovery / Apollo-Documentation-Xactly-Corp

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

Banner CTA #5

Open rossozburnsdi opened 1 year ago

rossozburnsdi commented 1 year ago

CTA Link Clicked

User clicks on the button in the banner. This is typically towards the bottom of the page

Example Screenshot:

Javascript Code

window.dataLayer = window.dataLayer || [];
dataLayer.push({ event_data: null });  // Clear the previous event_data object.
dataLayer.push({
  "event": "click",
  "detailed_event": "CTA Link Clicked",
    "event_data": {
        "component_title": "<component_title>",
        "component_type": "<component_type>",
        "identifier": "<identifier>",
        "link_text": "<link_text>",
        "link_url": "<link_url>",
        "outbound": <outbound>
    }
});
milind0299 commented 1 year ago

Hi @rossozburnsdi ,

Moving to SDI Review, please let us know for queries.

Thanks

jerry-bennett commented 1 year ago

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

Use case: Clicked on the "Request A Demo" button in the screenshot as well as the "Learn About Intelligent Revenue" button on the homepage as well.

Status: Working as expected, seeing the correct values in the data layer pushes. @milind0299 I am seeing two data layer pushes on this event. One is null with no information while the other has what we're expecting. I believe this would be worth looking into to see if the null event could be blocked.

Image

Image

milind0299 commented 1 year ago

Hi @jerry-bennett ,

I have removed the line in the code that was causing the null object for all events.

Thanks

jerry-bennett commented 1 year ago

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

Use case: Clicked on the "Request A Demo" button in the screenshot as well as the "Learn About Intelligent Revenue" button on the homepage as well.

Status: Looks good! Seeing the correct data layer push and the network call as well. Also seeing the GTM tag fire.

Image

Image

rossozburnsdi commented 1 year ago

Image

jerry-bennett commented 1 year ago

PROD QA: @rossozburnsdi

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

Use case: Scrolled to the bottom of the page and clicked on the 'request a demo' button.

Status: Not working, not seeing any network calls or data layer pushes. @milind0299

rossozburnsdi commented 1 year ago

Tested on: https://www.xactlycorp.com/products/incentive-compensation-management-software

Use case: Scrolled to the bottom of the page and clicked on the 'request a demo' button.

Status: Seeing network calls and DL push

Image