Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#2475 closed Task (fixed)

Campaign tracking parameters should be also detected in the URL hash tag (fragment)

Reported by: matt Owned by:
Priority: normal Milestone: 1.7 Piwik 1.7
Component: Core Keywords:
Cc: Sensitive: no

Description

The goal is to verify/ensure that using hash tags for campaigns parameters is allowed in Piwik.

Sometimes, it is a bit of a problem to link to example.org/?pk_campaign=test

Because search bots will follow these links, if posted on public places, and risk to index the URL with the parameter which will dilute SEO efforts.

Instead, the hashtag would make things better since it doesn't create a separate URL in the engine index.

  • Check that campaigns are detected/parsed from hashtag
  • remove hash tag values before recording URL
  • maybe update the campaign generator to generate campaign tags in hashtag

Change History (5)

comment:1 Changed 3 years ago by matt (mattab)

  • Milestone changed from 1.x - Piwik 1.x to 1.7 Piwik 1.7

comment:2 Changed 2 years ago by matt (mattab)

  • Milestone changed from 1.8 Piwik 1.8 to 1.7 Piwik 1.7

comment:4 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5825]) Fixes #2475

  • Campaign will now be tracked when the campaign name/keywords parameters are found in the fragment / hash tag

For example example.org/bla?hello=world#pk_campaign=CAMPAIGN&utm_term=KEYWORD
will be tracked as visit from campaign CAMPAIGN and keyword KEYWORD

  • Updated tests

comment:5 Changed 2 years ago by matt (mattab)

  • Summary changed from Campaign tracking using hash tag parameters to Campaign tracking parameters should be also detected in the URL hash tag (fragment)
Note: See TracTickets for help on using tickets.