question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update and consolidate stories for existing tags

See original GitHub issue

Feature Description

As part of the effort of simplifying cases around the handling of existing tags, we have a number of “duplicate” stories now due to the removal of “access” to a tag as a factor.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The following old stories under Analytics module / Setup and Analytics module / Settings below should be removed
    image
  • New stories for existing tags should be created accordingly using the newer CSF format, co-located with their respective components’ .stories.js
    • Modules/Analytics/Setup/SetupFormUA/:
      • ExistingTag – Existing UA tag, no property selected
    • Modules/Analytics/Setup/SetupFormGA4/:
      • ExistingTag – Existing GA4 tag, no property selected
    • Modules/Analytics/Setup/SetupFormGA4Transitional/:
      • ExistingTagUA – Existing UA tag, non-matching property selected
      • ExistingTagGA4 – Existing GA4 tag, non-matching property selected
      • ExistingTagUAGA4 – Existing tags, both UA+GA4 matching selected properties
      • ExistingGTMPropertyUANonMatching – GTM (UA) property that does not match the selected UA property ID
      • ExistingGTMPropertyUAMatching – GTM (UA) property that does match the selected UA property ID
    • Modules/Analytics/Settings/SettingsEdit/:
      • ExistingTagUA – Existing UA tag, non-matching property selected
      • ExistingTagGA4 – Existing GA4 tag, non-matching property selected
      • ExistingTagUAGA4 – Existing tags, both UA+GA4 matching selected properties
      • ExistingGTMPropertyUANonMatching – GTM (UA) property that does not match the selected UA property ID
      • ExistingGTMPropertyUAMatching – GTM (UA) property that does match the selected UA property ID

Implementation Brief

  • In stories/module-analytics-setup.stories.js and stories/module-analytics-settings.stories.js, remove the stories mentioned in the AC.
  • Using assets/js/modules/analytics/components/setup/SetupFormUA.stories.js,
    • add a new story as per the AC for SetupFormUA with the setup form in its initial state, i.e no property selected.
      • In order to do so, no account should be selected.
      • The call to set the account, registry.dispatch( MODULES_ANALYTICS ).selectAccount( accountID ); in the global story decorator might need to be moved to invidual stories where we need to set the account.
  • Same points as the above but applied to SetupFormGA4.
  • For SetupFormGA4Transitional and SettingsEdit, refer to the old stories in stories/module-analytics-setup.stories.js and stories/module-analytics-settings.stories.js for the actions to be dispatched in order to recreate the stories.
  • Refer to the AC for the story names.

Test Coverage

  • VRT might need to be updated in case they are relying on the old stories.

QA Brief

Note: Although the IB talks only about adding stories, there are a number of existing stories which cover some or all of the AC and needed to be modified rather than adding new ones. As such, the story names used have been kept consistent with existing stories.

Also, note that it’s not technically possible/realistic to implement the proposed ExistingTag – Existing GA4 tag, no property selected story so this has not been attempted.

  • Check the stories listed to be removed in the AC have been removed.
    • Note that the stories Edit, with existing tag w/ access and Edit, with existing tag w/o access in Analytics Module/Settings were determined to be the equivalent of the listed Existing Tag w/ access and Existing tag w/o access stories and were deleted.
  • Ensure the highlighted stories implement or are updated in line with the AC, notwithstanding the notes above.

image

Screenshots for reference:

Modules/Analytics/Settings/SettingsEdit

With UA Tag, non-matching property selected image

With GA4 Tag, non-matching property selected image

With Both Tags, both UA+GA4 matching selected properties image

With GTM (UA) property that does not match the selected UA property ID image

With GTM (UA) property that does match the selected UA property ID image

Modules/Analytics/Settings/SetupFormGA4Transitional

With UA Tag, non-matching property selected image

With GA4 Tag, non-matching property selected image

With Both Tags, both UA+GA4 matching selected properties image

With GTM (UA) property that does not match the selected UA property ID image

With GTM (UA) property that does match the selected UA property ID image

Modules/Analytics/Settings/SetupFormUA

With UA Tag, no property selected image

Changelog entry

  • N/A

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
felixarntzcommented, May 3, 2022

@aaemnnosttv ACs lgtm, two points:

  • For all the new stories around existing tags (not GTM tags), can you define whether the story should have the same property selected or another property selected? I agree we don’t need to have one story with both of these situations for each, since it can just be toggled within the story, but we should define what the initial state of the story should be.
  • It might make sense to maybe put the removals first. Of course we need to read the whole ACs anyway, but it may sound a bit confusing to first have to update “all stories related to existing tags” but then later remove a bunch of them. So maybe put the removal first, and then say something like “all remaining stories related to existing tags”?
1reaction
aaemnnosttvcommented, Jun 15, 2022

I found an additional story in AC which screenshots and details are not mentioned in QAB. Is the story “With GA4 tag , non matching property selected” and story mentioned below are same ?

@mohitwp yes, they are the same 👍

I found few additional stories under Modules/Analytics/Settings/SettingsEdit/ . See highlighted stories under below screenshot. These stories are not on main branch and also not under QAB screenshot. Is this due to changes introduced in any other ticket ?

These were added as part of #5301

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tagging stories with labels - Pivotal Tracker
Labels are tags that can be associated with stories. You can use them to organize your Icebox, Backlog and to keep track of...
Read more >
Git Tag Operations - Git Delete Tag & Git Update Tag - Tools QA
How to Delete tags & Update tags in Git? Different operations on Git Tags including Git Delete Tag and Git Update Tag with...
Read more >
All the Merge Tags Cheat Sheet - Mailchimp
Displays the current year. This is great if you include a copyright date in your campaign, because it will update automatically every year....
Read more >
How to Use Instagram Tagging for More Exposure
Add a Tag to an Existing Instagram Post. If you want to go back and edit an existing post on your Instagram profile,...
Read more >
Add new commit to the existing Git tag - Stack Overflow
Push to the remote branch. git push -u origin my-tagged-branch. If needed merge branch into other branches that need the change (in case...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found