Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tracking to the travel advice pages
- uses the new feature of the track click script to track link clicks only inside the grey callout box (the second callout box on the page) - this is inside govspeak content so we can't directly apply tracking to it, hence the new feature of the track click script to limit tracking to a specific element
- Loading branch information
I think
current_part_body
is everything below the summary on the page, not just the callout box.See:
government-frontend/app/presenters/content_item/parts.rb
Line 27 in 7a0b068
So for example, on the "France" page for Safety and Security, everything below the Safety and Security heading will be tracked, because that's the "current part" on that page.
Is that what was intended?