• Resolved kennethrg

    (@kennethrg)


    Hi,

    I have created a custom shortcode to embed dynamic content in a newsletter. This content includes several links. I am curious if there is a way to have these links rewritten with the MailPoet tracking feature so that when a recipient clicks on a link it will be tracked in the same way that other links are? For example, is there a PHP function I can call that will rewrite the URL?

Viewing 3 replies - 1 through 3 (of 3 total)
  • This isn’t an answer to your question, so sorry for butting in.

    Are you finding it easy to use shortcodes in the newsletter? I just installed it to test it out.

    Thread Starter kennethrg

    (@kennethrg)

    The custom shortcode I created is essentially a wrapper for a WordPress shortcode created by another plugin (Events Manager). I had been struggling with how to include upcoming events in a MailPoet newsletter for a while, and I finally decided to try a custom shortcode. It was very easy to implement, and it gives me a lot of flexibility. I should have tried it sooner!

    Plugin Support Fernando M. a11n

    (@fernmed)

    Hello @kennethrg,

    Thanks for contacting MailPoet! Happy to hear you’re having a great experiencing using custom shortcode from other plugins within MailPoet.

    As for your initial question:

    I am curious if there is a way to have these links rewritten with the MailPoet tracking feature so that when a recipient clicks on a link it will be tracked in the same way that other links are? For example, is there a PHP function I can call that will rewrite the URL?

    This is not possible with the MailPoet plugin out of the box.

    However, it might be possible with some custom code. Please note that assistance with custom code like that is outside our?scope of support, but if you need help with custom code, we recommend reaching out to someone from Codeable or if you’re familiar with coding yourself, I’d suggest reviewing our current list of Filters and Actions that may be helpful to get started.

    Let us know if you have any further questions at all!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘tracked link in custom shortcode?’ is closed to new replies.