Hello, I have downloaded and tried Simplenews Statistics and LOVE it, but my click throughs (CTR) are not being tracked properly. Everything else seems to work perfectly.

I was unable to find documentation, but is there certain format my tags have to have?

I think my problem may be a conflict with TinyMCE or drupal multisite. I tried adding in "http://www.site.com/" before all my links (tinymce usually cuts these out) but I get this result when I click on the link it goes to this broken URL - "http://www.site.com/%2Fsite.com/link/to/site" instead of "http://www.site.com/link/to/site" This brings up a page not found. However, the page not found is tracked in statistics.

Any ideas?

CommentFileSizeAuthor
#6 absolute2.patch2.28 KBDocc
#2 absolute.patch1.01 KBDocc

Comments

Docc’s picture

Status: Active » Postponed (maintainer needs more info)

Wich version of mimemail and simlenews are you using? i have a feeling mimemail has changed some functions. It seems now the links are not properly converted to absolute urls before simplenews_statistics. Wich means i have todo this aswell in the module.

Docc’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.01 KB

Attached a proposed patch. Let me know if this works

brei9000’s picture

Thanks for patching this.

It is now tracking the click-throughs, but its generating an odd URL that brings a 404 error.

This url: /content/this-is-a-page, gets turned into this url: http:/%2Fsite.com/content/this-is-a-page.

I tried disabling tinymce so I could enter the full url, but it turns this url: http://www.site.com/content/this-is-a-page, gets turned into this url: http://site.com/%2Fwww.site.com/content/this-is-a-page.

Any ideas?

Docc’s picture

Wich version of mimemail/simplenews/statistics are you using? And are you using Full HTML as input format?

brei9000’s picture

Mime Mail 6.x-1.x-dev
Simplenews 6.x-1.0-rc6
Simplenews Statistics 6.x-1.1

I had Full HTML selected also.

Docc’s picture

StatusFileSize
new2.28 KB

If you could try again with this patch

brei9000’s picture

Looks to be fixed! Thank you very much!

Docc’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

AlenaSystems’s picture

Status: Closed (fixed) » Active
Issue tags: +mimemail

This issue is apparently not completely fixed. The links in the newsletter body are not correctly replaced and therefore generate a 404 error when clicked.

The following link:
<a href="http://www.example.com/form?param1=value1&amp;param2=value2">http://www.example.com/form?param1=value1&amp;param2=value2</a>
get replaced by:
<a href="http://www.example.com/simplenews/statistics/click?nid=36&mail=email%40example.com&url=http%3A/%252Fwww.example.com/form%3Fparam1%3Dvalue1%2526amp%3Bparam2%3Dvalue2">http://www.example.com/form?param1=value1&amp;param2=value2</a>
when it should be replaced by:
<a href="http://www.example.com/simplenews/statistics/click?nid=36&mail=email%40example.com&url=http%3A%2F%2Fwww.example.com%2Fform%3Fparam1%3Dvalue1%26amp%3Bparam2%3Dvalue2">http://www.example.com/form?param1=value1&amp;param2=value2</a>

We use:
Drupal 6.12
Mime Mail 6.x-1.x-dev
Simplenews 6.x-1.0-rc6
Simplenews Statistics 6.x-1.2 (includes absolute2.patch)
and Full HTML is selected.

leda.ch’s picture

Hi,

How about the status of this issue? Just "suffering" from this ctr-tracking not working (urls aren't changed at all within the body).
It seems, that unfortunately since march nothing has happened here.

I would be grateful, if someone could jump into this.
With the rest I'm completely happy

Rgds
leda

Drupal 6.14
Mime Mail 6.x-1.x-dev (2009-Jun-08)
Simplenews 6.x-1.0-rc6
Simplenews Statistics 6.x-1.2 (no patch applied)
Full HTML

gatsby8870’s picture

Hi, thanks for a good module.

My issue is the CTR count is actually the "unique clickers" not actual clicks. I have checked on a few different days.

I use:
Simple News 6.x-1.3
Simple News Statistics 6.x-2.1
Mime Mail 6.x-1.0-alpha4

Any thoughts would be appreciated.

Thank you.

weseze’s picture

Status: Active » Closed (works as designed)

1.1 is no longer supported