# Weeknotes: 116

## Work

I spent much of this week writing documentation and thinking about things, sometimes in the other order. One of the things I’ve been thinking about is how cross-domain analytics will work with GOV.UK Accounts

GOV.UK uses cross-domain analytics (only if the user has consented to cookies on both domains, of course) to give a joined up view of how users interact with government. So naturally this has to work with GOV.UK Accounts too, or we’ll have an ever-growing blind spot in this joined up view.

Cross-domain analytics works by sticking a _ga query param onto cross-domain links, which the analytics code at the link destination picks up. The problem is that with accounts, most of the cross-domain stuff is in the form of OAuth journeys: we have cross-domain redirects. So we have non-cross-domain links which may do a cross-domain redirect; for example, navigating from an unauthenticated part of a service to an authenticated part, the link is a normal internal link, but it’ll redirect a logged-out user to the accounts domain.

So I spent some time thinking through all the cases:

• is the link from the accounts domain or the service domain?
• is the link to an authenticated or an unauthenticated page?
• does the user have an active session on the service domain?
• does the user have an active session on the accounts domain?

For each, figuring out which links a user will click on, which redirects will happen, and where a _ga param needs to be passed along for the cross-domain analytics to all fit together.

Geez, the web would be much simpler00And less secure. Ah, if only we could just trust everyone to not be malicious!

## Books

• Midnight Tides by Steven Erikson, the fifth of the Malazan Book of the Fallen.

This was an interesting one, as I had a lot of difficulty figuring out when it was set. Malazan can jump across continents and time when it changes from one book to the next, but this was particularly tricky. It’s the story of the Tiste Edur people, before Trull Sengar was abandoned in a warren for his crimes. So it’s clearly before the other books, but how long before?

The humans in this book use the Tiles of the Holds, not the Deck of Dragons, and even that’s considered a more modern alternative to the traditional Edur sorcery, so is it in the distant past, thousands of years before the other books?

There’s more evidence throughout the book which let me place it fairly accurately in the timeline by the end, but it took most of the book to get there.