Proposal: Measuring our ads
What changes
Agpedia learns which of its ads bring people who read and who join, in the way the privacy policy already describes, and built so that other advertising partners can be added later.
- When someone arrives from one of our ads, we keep the ad's click ID in a cookie for 30 days. In the EU, EEA and UK, only after they say yes in a short banner.
- While the cookie lasts, our server notes three things: a day they came back and read articles, a day they came back and read pages for contributors, and a signup.
- Once a day, the server sends these to the partner that ran the ad: the click ID, which of the three it was, and when. Nothing else.
- No partner code on our pages. No tag, pixel or script from Google or anyone else; everything is sent from our server.
- Google first, since we advertise through Google Ad Grants. Others, such as Microsoft Advertising, can be added as separate partner modules.
Why
- An ad platform learns which ads work from what they lead to. Without that, Google can only optimise for clicks, which bring visitors who leave at once.
- We want ads that bring contributors, not just clicks. A signup is the clearest sign. Coming back to the blog, help, policy or proposal pages shows interest in contributing before anyone signs up. Coming back to articles shows the ad found a reader.
- Reading articles and reading contributor pages say different things about an ad, so they are reported separately. That is a little more than "how often you come back", which is all the policy mentions today, so this proposal updates the policy to say so.
How it works
Arriving from an ad
- The partner adds a click ID to the link (
gclid,gbraidorwbraidfor Google). - Our server looks up the visitor's country, with the same database on our own server as page view statistics. The IP address is not stored for this.
- EU, EEA and UK: the page shows the banner below. The cookie is set only if the visitor says yes. If they say no, nothing is kept. The banner appears only on a page whose address carries a click ID, so it never comes back on the next page, and no cookie is needed to remember a no.
- Everywhere else, including Switzerland: the cookie is set at once, as the policy says.
- After the answer (or at once outside the EU, EEA and UK), the server redirects to the same address without the click ID, so it doesn't end up in shared links or bookmarks.
The cookie holds the partner, the click ID and the time of the click. It is first-party, HttpOnly, Secure and SameSite=Lax, and expires 30 days after the click. Later visits don't extend it.
The banner
It says plainly what the visitor is agreeing to, with two equal buttons:
You came here from one of our ads on Google.
May we tell Google that the ad brought you here, on which days you come back to read or contribute in the next 30 days, and whether you create an account? This shows us which ads are worth running. Google gets only the ad's code and these facts, not your name, your email, which pages you read or anything you write.
[Yes, that's fine] [No]
Your answer changes nothing else on Agpedia. Privacy policy
The partner's name in the first line comes from the partner module, so the banner is right for every partner.
What is recorded and sent
| What | When | At most |
|---|---|---|
| Signup | an account is created while the cookie lasts | once |
| Return visit: articles | a later day on which the visitor reads at least one article | once a day |
| Return visit: contributor pages | a later day on which the visitor reads the blog, help or policy pages, proposals, discussions or the forum | once a day |
- Each event is stored with the partner, the click ID, what it was and when, and nothing else. A signup is not linked to the new account: we record that the click led to a signup, not who signed up.
- Once a day, the events are sent through the partner's API (for Google, the Google Ads API's offline click conversions), with the consent the visitor gave where one was asked.
- Click IDs and their events are deleted 90 days after the click, as the policy says.
- To withdraw consent or object, people email info@oka.wiki, as today. An admin tool deletes all events for a click ID.
Partners as modules
Each advertising partner is one module that says: its name (for the banner), its click ID parameters, its names for the three events, and how to send them. Adding a partner means adding a module and naming the partner in the privacy policy first, which the policy already requires. Nothing else changes.
What we see ourselves
- Page view statistics count views that came from ads as a source of their own, with no click IDs: how ad visitors read, in aggregate.
- An admin-only page shows, per day and per partner, how many of each event were recorded and sent, and whether the last upload worked.
Setting up Google
- In the Google Ads account: three conversion actions ("Signup", "Return visit: articles", "Return visit: contributor pages") imported from clicks. Signup is the primary goal; the return visits are secondary, so they are reported without driving bids at first.
- Google Ads API credentials (developer token, OAuth client and refresh token, customer ID) are stored as secrets on the server, never in the repository.
Changes to the guidelines
In the privacy policy:
1. The short version, the point on ads
Before
If you come to Agpedia by clicking one of our ads on an advertising partner such as Google, we let that partner know whether the ad led you to come back to Agpedia or to sign up, which shows us which ads are worth running to build the community. In the EU, EEA and UK, we only do this if you say yes.
After
If you come to Agpedia by clicking one of our ads on an advertising partner such as Google, we let that partner know whether the ad led you to come back to Agpedia, to read or to contribute, or to sign up, which shows us which ads are worth running to build the community. In the EU, EEA and UK, we only do this if you say yes.
2. "If you came to Agpedia from one of our ads", the list of what we report
Before
- how often you come back while the 30-day ad-reporting cookie lasts;
- whether it led to a signup.
After
- how often you come back while the 30-day ad-reporting cookie lasts: for each day you come back, whether you read articles, pages for contributors (such as the blog, help, policy and proposal pages, and the forum), or both;
- whether it led to a signup.
3. The same section, after "Everywhere else, including Switzerland, we send the same reports without asking."
Add:
To know whether to ask, our server looks up which country your IP address is in, using a database kept on our own server. The address isn't stored for this.
4. The same section, the last sentence of the paragraph on our own server
Before
We never send them your email address, your username, or anything specific you do on the site.
After
We never send them your email address, your username, which pages you read, or anything you write.
5. Who we share data with, advertising partners
Before
When one of our ads brings you to Agpedia, the partner that ran it receives the ad's click ID, how often you came back, whether you signed up, and when;
After
When one of our ads brings you to Agpedia, the partner that ran it receives the ad's click ID, on which days you came back and whether to read or to contribute, whether you signed up, and when;
Not in this proposal
- Other partners, such as Microsoft Advertising. Each needs its module and a line in the privacy policy.
- Anything sent to a partner beyond the three events above, such as which pages someone read or how long they stayed.
- Running the campaigns themselves: keywords, budgets and ad texts are managed in the Google Ads account.
Technical notes
- Landing: a middleware runs before page routes on GET requests with a known click ID parameter. It looks up the country (shared country module), then either sets the cookie and redirects to the clean address, or renders the page with the banner. The banner's buttons post to
/tool/ad-consentwith the click ID in a hidden field; the response sets the cookie on yes, and redirects to the clean address either way. - Events: the page view counter from page view statistics also checks for the cookie, and records at most one event per day and kind of page per click ID (a unique key on click ID, event and day). Signup records its event when the account is created. A table
ad_click_eventsholds partner, click ID, click time, event, day and upload state. - Upload: a daily job groups unsent events by partner and calls the partner module's
upload. For Google,UploadClickConversionswithgclid,gbraidorwbraid, the conversion action, the time, andconsent.ad_user_dataset to granted where a visitor said yes. Failed uploads retry the next day; events are marked sent individually. - Clean-up: a daily job deletes events and click IDs 90 days after the click.
- Partner module interface:
id,displayName,clickIdParams,eventNames,upload(events).
Positions
DiscussionNo one has stated a position yet.