Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piwik_campaign does not track my pdfs #5788

Closed
anonymous-matomo-user opened this issue Sep 26, 2008 · 11 comments
Closed

piwik_campaign does not track my pdfs #5788

anonymous-matomo-user opened this issue Sep 26, 2008 · 11 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

I’m trying to track links in an email newsletter so I thought I would make use of piwik_campaign.

This works fine and shows up in the Referers > Campaigns report as ‘Email’:

http://hdsintranet.hdsupply.net/?piwik_campaign=Email

This does not work:

http://hdsintranet.hdsupply.net/Marketing_CMS/Communications/UploadedFiles/Memo_092608_PamCampbell.pdf?piwik_campaign=EnterpriseCommunicationsEmail

Any ideas?

Thanks,
JJ

@mattab
Copy link
Member

mattab commented Oct 8, 2008

The piwik_campaign parameter will be read only on pages where the piwik tracker is available. On the PDF file piwik won’t be executed.
What we could do is introduce a new redirect:

http://your_piwik_url/piwik.php?campaign=EnterpriseCommunicationsEmail&redirect=http://your_file_url/Memo_092608_PamCampbell.pdf

If that is something useful, please create a new ticket with as much details as possible.

@anonymous-matomo-user
Copy link
Author

Tried the redirect URL:

http://stats.hdsupply.net/piwik.php?campaign=EnterpriseCommunicationsEmail&redirect=http://polarpipe.ca/docs/flangefittingdata/weldingflangestopipe.pdf

But got this error:

Fatal error: Uncaught exception ‘Exception’ with message ‘The ’idsite’ in the request is invalid.’ in C:\xampp\htdocs\currentstats\core\LogStats\Visit.php:45 Stack trace: #0 C:\xampp\htdocs\currentstats\core\LogStats.php(208): Piwik_LogStats_Visit→__construct() #1 C:\xampp\htdocs\currentstats\core\LogStats.php(230): Piwik_LogStats→getNewVisitObject() #2 C:\xampp\htdocs\currentstats\piwik.php(46): Piwik_LogStats→main() #3 {main} thrown in C:\xampp\htdocs\currentstats\core\LogStats\Visit.php on line 45

I saw some post about problems that occur when the site with idsite = 1 has been deleted. So I installed a new instance of the Piwik current development trunk to make sure I have all the latest patches and such. I recreated my sites so I had three with idsite = 1 and 2 and 3.

Still no luck.

Any ideas?

@anonymous-matomo-user
Copy link
Author

Sorry forgot to put the error in code block veiw.

Here it is:

```
Fatal error: Uncaught exception ‘Exception’ with message ‘The ’idsite’ in the request is invalid.’ in C:\xampp\htdocs\currentstats\core\LogStats\Visit.php:45 Stack trace: #0 C:\xampp\htdocs\currentstats\core\LogStats.php(208): Piwik_LogStats_Visit→__construct() #1 C:\xampp\htdocs\currentstats\core\LogStats.php(230): Piwik_LogStats→getNewVisitObject() #2 C:\xampp\htdocs\currentstats\piwik.php(46): Piwik_LogStats→main() #3 {main} thrown in C:\xampp\htdocs\currentstats\core\LogStats\Visit.php on line 45
```

BTW here are the details:

The piwik site is on a Windows 2003 / Apache Web Server and the website being tracked is running on Windows 2003 IIS server.
I get this error in both Firefox and IE 6.

Thanks,
JJ

@anonymous-matomo-user
Copy link
Author

Anyone able to look into this? I know you core developers all have a life outside of piwik but I have a strong business need for this. I also know piwik is in beta. I’d hate to have to o with Google Analytics :(

Besides the IT Security team over here does not want an externally hosted app to track our stuff.

Let me know if I need to submit any additional information.

Any help would be much appreciated.

Thanks,
JJ

@pebosi
Copy link
Contributor

pebosi commented Nov 7, 2008

Cant you use the download tracking? i’m sure thats what you need…

@pebosi
Copy link
Contributor

pebosi commented Nov 7, 2008

from global.ini.php

; Example: ‘/piwik.php?idsite=1&download=http://piwik.org/piwik.zip&name=Piwik last version’

@anonymous-matomo-user
Copy link
Author

I tried the url

```
http://stats.hdsupply.net/piwik.php?idsite=1&download=http://hdsintranet.hdsupply.net/Marketing_CMS/Communications/UploadedFiles/Memo_103108_HolidayCards.pdf&name=EmailCampaign
```

in the email. I didn’t get any errors and the PDF opened up in my browser but there was no listing in any of the piwik reports for the name ‘EmailCampaign’

Oh well.

@pebosi
Copy link
Contributor

pebosi commented Nov 7, 2008

Ok, tried it, the Download is counted but the name is not used.

@robocoder
Copy link
Contributor

Matt, I see in core/Tracker/Action.php (lines 153-154), the name is intentionally not used:

```
//$actionName = $this→nameDownloadOutlink;
$actionName = $url;
```

Should the code for downloads match that for outlinks?

```
$actionName = $this→nameDownloadOutlink;
if( empty($actionName) )
{
$actionName = $url;
}
```

Otherwise, it looks like we can close this ticket.

@robocoder
Copy link
Contributor

Sorry, I should have previewed that comment — the formatting is off.

@robocoder
Copy link
Contributor

Please see goal tracking plug-in (beta) released in Piwik 0.2.28.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

4 participants