Menu

1 / 2

Search crawlers were adding our customers' events to their calendars

DEV Community: laravel·atymic·8 days ago
#TrQBDxFg
#devtolaravel#devto#dev#token#links
Reading 0:00
15s threshold

A customer messaged us because their add to calendar count looked far too high for the size of their event, and almost none of those adds came after someone had looked at the event page.

We run AddCal , which makes add to calendar links and buttons for events. The add count is the number our customers look at most, so when it's way off we need to know why.

How an add gets counted

Each event page has a button per calendar app (Google, Apple, Outlook, Office 365, Yahoo, .ics and so on). Every button is a link like /e/{event}/google . We count a hit on that link as an add, then redirect to the calendar app.

When the page renders, the JS adds an ac click token to each link, a random 14 char hex string. iOS Calendar re-fetches .ics URLs every hour, so the token lets us count the first click and skip the refreshes. Repeats of the same token within 24 hours aren't counted.

We already returned a 403 to anything with bot , spider or crawl in the user agent.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.