[MGNLTAGS-79] Tag is not included in page variant if visited via preview parameter Created: 23/May/19  Updated: 17/Mar/22  Resolved: 17/Mar/22

Status: Closed
Project: Marketing Tags Manager
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mercedes Iruela Assignee: Jesus Alonso
Resolution: Cannot Reproduce Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLTAGS-67 Tag not inserted in variants if a pag... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: AuthorX 5

 Description   

It seems that info.magnolia.marketingtags.model.ScriptsAreaModel.isChildNodeOf is not taking into consideration variants in some cases. I tested it and it can be reproducible in the latest version of the module.

Steps to reproduce (in travel demo):
1. Create a page variant in travel home page.
2. Create a page variant in about page
3. Add segment Americas to about page variant
4. In Marketing tags, edit the tag an select 'Include in subpages' and '/travel'
5. Access the about page with personalization previewCountry parameter - travel/about?previewCountry=us

If you access to About page, it contains the tag if it is the original about page (without configuration).

If you access the variant via preview parameter, then the tag is not included, but if variant is visited via admincentral (pages app, preview app) than tag is included.

Since some issues have been detected integrating Marketing Tags + Personalization, it would be great if we could do some deeper testing on this.



 Comments   
Comment by Mercedes Iruela [ 17/Mar/22 ]

Tested in Magnolia 6.2.17 and it is not longer reproducible. 

Generated at Mon Feb 12 10:14:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.