Making WordPress.org

Changeset 12352


Ignore:
Timestamp:
12/21/2022 04:58:39 PM (2 years ago)
Author:
iandunn
Message:

Events: Add UTM params to SotW URL for stats

This won't affect 2022, but adding it now makes it less likely it will be forgotten for 2023.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r12258 r12352  
    15871587 */
    15881588function pin_one_off_events( $events, $current_time ) {
    1589 
    15901589    if ( $current_time > strtotime( 'December 13, 2022' ) && $current_time < strtotime( 'December 18, 2022' ) ) {
    15911590        $utc_offset = -5 * HOUR_IN_SECONDS;
     
    15941593            'type'                 => 'wordcamp',
    15951594            'title'                => 'State of the Word',
    1596             'url'                  => 'https://wordpress.org/news/2022/11/state-of-the-word-2022/',
     1595            // `utm_source` is `private` because it would have to be set by the WP install, we don't need it, and tracking it could be a privacy concern.
     1596            // This may need to be updated for GA4 - https://support.google.com/analytics/answer/10089681.
     1597            'url'                  => 'https://wordpress.org/news/2022/11/state-of-the-word-2022/?utm_source=private&utm_medium=events_widget&utm_campaign=sotw2022',
    15971598            'meetup'               => '',
    15981599            'meetup_url'           => '',
Note: See TracChangeset for help on using the changeset viewer.