Mautic Drupal plugin

We just tried out the Mautic Drupal plugin, and had to make some changes to get it to work. I’ve put a pull request up on the Github mautic_drupal project for the necessary changes.



The other thing I need info on is what is the proper base URL? I would assume that it should be http://-subdomain-.mautic.com. I note that the module generates a path of -subdomain-.mautic.com/p/page/tracker.gif, and that path 404’s for our account.

We just tried out the Mautic Drupal plugin, and had to make some changes to get it to work. I’ve put a pull request up on the Github mautic_drupal project for the necessary changes.

The other thing I need info on is what is the proper base URL? I would assume that it should be http://-subdomain-.mautic.com. I note that the module generates a path of -subdomain-.mautic.com/p/page/tracker.gif, and that path 404’s for our account.

Looks like we didn’t get the URL updated in that plugin. It should be mtracking.gif.

Thanks for doing a pull request! Do you mind throwing in that URL change?

Thanks!
Alan

I merged the recent pull request. Didn’t see anything pointing to the incorrect URL path for the image. Let me know if it still shows incorrectly. It may be merely a browser cache rather than in the code.

Thanks,
David

Hand-checked the proper path in the browser, and yes, /p/mtracking.gif at least doesn’t 404, though it is currently returning only a 1x1 pixel .gif. I presume that can be changed in account settings?

I’ll put up a pull request for that change shortly.

What do y 'all think of changing the mautic_drupal project organization to, instead of having a single master branch with different Drupal versions in subdirectories, have the code for each main Drupal version in its own branch - e.g. Drupal 6 code for this module would be in branch 6.x-1.x, Drupal 7 code for the module would be in 7.x-1.x (I originally suggested branches 6x and 7x in the Github issue I posted for this, but 6.x-1.x and 7.x-1.x is more like what you’ll find in contrib modules hosted on drupal.org).

I can understand not wanting to jump through the hoops necessary to be able to put this up as a full project on Drupal.org (I code Drupal sites, and I haven’t gotten around to jumping through those hoops myself), but it would be helpful if the code for this was closer to how Drupal contrib modules are normally organized. Also, doing it this way means that a user can directly install the appropriate code by doing something like

git clone -b 7.x-1.x https://github.com/mautic/mautic-drupal.git mautic_tracker

or (if you also do tags for release versions):

git clone -b 7.x-1.0 https://github.com/mautic/mautic-drupal.git mautic_tracker

instead of having to download the github project, and then have to copy the appropriate directory out of the project and into the site.