| @@ -62,11 +62,11 @@ | ||
| 62 | 62 | |
| 63 | 63 | $new_campaign_url = admin_url( 'admin.php?page=disco-create-discount#/disco' ); |
| 64 | 64 | $campaigns_url = admin_url( 'admin.php?page=disco-create-discount' ); |
| 65 | 65 | $settings_url = admin_url( 'admin.php?page=disco-create-discount#/settings' ); |
| 66 | - $pro_url = 'https://discoplugin.com/?utm_source=wp_wedget&utm_medium=free-pro&utm_campaign=free-pro&utm_id=1#pricing'; | |
| 67 | - $blog_url = 'https://discoplugin.com/blog/'; | |
| 68 | - $docs_url = 'https://discoplugin.com/docs/'; | |
| 66 | + $pro_url = 'https://discoplugin.com/?utm_source=disco-plugin&utm_medium=in-plugin&utm_campaign=dashboard-widget&utm_content=unlock-pro-button#pricing'; | |
| 67 | + $blog_url = 'https://discoplugin.com/blog/?utm_source=disco-plugin&utm_medium=in-plugin&utm_campaign=dashboard-widget&utm_content=blog-link'; | |
| 68 | + $docs_url = 'https://discoplugin.com/docs/?utm_source=disco-plugin&utm_medium=in-plugin&utm_campaign=dashboard-widget&utm_content=docs-link'; | |
| 69 | 69 | $support_url = 'https://wordpress.org/support/plugin/disco/'; |
| 70 | 70 | $review_url = 'https://wordpress.org/support/plugin/disco/reviews/#new-post'; |
| 71 | 71 | ?> |
| 72 | 72 | <div class="disco-dw"> |
| @@ -286,8 +286,18 @@ | ||
| 286 | 286 | |
| 287 | 287 | if ( empty( $title ) || empty( $link ) ) { |
| 288 | 288 | continue; |
| 289 | 289 | } |
| 290 | + | |
| 291 | + $link = add_query_arg( | |
| 292 | + array( | |
| 293 | + 'utm_source' => 'disco-plugin', | |
| 294 | + 'utm_medium' => 'in-plugin', | |
| 295 | + 'utm_campaign' => 'dashboard-widget', | |
| 296 | + 'utm_content' => 'blog-post', | |
| 297 | + ), | |
| 298 | + $link | |
| 299 | + ); | |
| 290 | 300 | |
| 291 | 301 | // Category from embedded terms. |
| 292 | 302 | $category = ''; |
| 293 | 303 | if ( ! empty( $item['_embedded']['wp:term'] ) ) { |