since ‎11-04-2017
‎19-02-2021
rigor
Level 1
Re: Sending beacon: xhr vs script
Avatar

rigor

rigor
- Adobe Analytics
I guess, I simply have to find a way to work around this. Thanks for the clarification.

Views

92

Likes

0

Replies

0
Sending beacon: xhr vs script
Avatar

rigor

rigor
- Adobe Analytics
I have AppMeasurement 2.17.0 and it sometimes sends beacons as (1) AJAX POST request and sometimes it dynamically (2) adds to the page (with the same URL as AJAX request) and that results in a GET request. In case of 1 the data is encapsulated in the request body, and in case of 2 the data is sent in request parameters.Why is that so, and is it possible to configure it to always send the beacon as AJAX POST? I would like to have it that way, because it makes testing track calls with tools such as Cypress easier. Cypress, for example, is capable only of detecting AJAX requests.

Views

112

Likes

0

Replies

2
Re: Creating a node in the JCR when a component is rendered
Avatar

rigor

rigor
- Adobe Experience Manager
In that case you have to use Dynamic Templates that were introduced in AEM 6.2. Have a look here -> Creating Page Templates

Views

4.0K

Likes

0

Replies

1
Re: Creating a node in the JCR when a component is rendered
Avatar

rigor

rigor
- Adobe Experience Manager
As you said, cq:template node of the component has the desired effect only in case author adds the component to page - true. For the first use case, however, you have to include the respective nodes in the template of your page, e.g.,:

Views

4.0K

Like

1

Replies

4
Re: Creating a node in the JCR when a component is rendered
Avatar

rigor

rigor
- Adobe Experience Manager
If you want your component to have some nodes created automatically you have to make use of cq:template. You create it beside cq:dialog. If you want to have node called image_node created automatically, your cq:template would look something like this:

Views

4.0K

Likes

0

Replies

6
Likes given to
Likes from