'aarye-free', 'utm_medium' => 'plugin', 'utm_campaign' => 'upgrade', 'utm_content' => sanitize_key( $place ), ), self::URL ); return $url . ( '' !== $hash ? '#' . $hash : '' ); } /** * Menu item under Aarye Leads. * * @param string $parent_slug Parent slug. * @param string $cap Capability. */ public static function menu( $parent_slug, $cap ) { add_submenu_page( $parent_slug, __( 'Aarye Pro', 'aarye-marketing-addon' ), '' . esc_html__( 'Upgrade to Pro', 'aarye-marketing-addon' ) . '', $cap, self::PAGE, array( __CLASS__, 'page' ) ); } /** * "Get Pro" on the Plugins screen. * * @param array $links Links. * @return array */ public static function action_link( $links ) { $links[] = '' . esc_html__( 'Get Pro', 'aarye-marketing-addon' ) . ''; return $links; } /** * Pro features. * * @return array[] */ private static function features() { return array( array( 'icon' => 'dashicons-share-alt2', 'title' => __( 'Send every lead to your CRM', 'aarye-marketing-addon' ), 'text' => __( 'Each lead, with its ad, campaign and keyword, reaches HubSpot, Zoho CRM, Airtable, Notion, your own database or any webhook (Zapier, Make, n8n) a few seconds after the form is sent. If a service is down, Aarye tries again for 7 days.', 'aarye-marketing-addon' ), ), array( 'icon' => 'dashicons-phone', 'title' => __( 'WhatsApp and call clicks', 'aarye-marketing-addon' ), 'text' => __( 'Every click on a WhatsApp, call, SMS or email button is saved with the ad or website that brought the visitor, even when they never send a form.', 'aarye-marketing-addon' ), ), array( 'icon' => 'dashicons-chart-line', 'title' => __( 'Form analytics', 'aarye-marketing-addon' ), 'text' => __( 'Views, starts, submissions and abandons for every form, the field where people give up, and conversion by source: do Meta visitors fill in your form as often as Google visitors?', 'aarye-marketing-addon' ), ), array( 'icon' => 'dashicons-visibility', 'title' => __( 'Pages viewed before the lead', 'aarye-marketing-addon' ), 'text' => __( 'On every lead: the pages the visitor read before getting in touch, how long they stayed on each, and their IP address.', 'aarye-marketing-addon' ), ), array( 'icon' => 'dashicons-controls-repeat', 'title' => __( 'Automations', 'aarye-marketing-addon' ), 'text' => __( 'Rules like "when the lead came from Meta Ads and the budget is 5k+: mark it Qualified, email sales and send it to HubSpot". Conditions on source, campaign, ad, form or any field.', 'aarye-marketing-addon' ), ), array( 'icon' => 'dashicons-shield', 'title' => __( 'Spam and bot protection', 'aarye-marketing-addon' ), 'text' => __( 'Bots, throwaway emails, link spam, blocked words, emails and IP addresses, and repeat senders are kept as spam, never sent to your CRM or counted as leads.', 'aarye-marketing-addon' ), ), array( 'icon' => 'dashicons-money-alt', 'title' => __( 'Cost per real lead', 'aarye-marketing-addon' ), 'text' => __( 'Connect Laghavi Ads Hub to compare what each ad network reports with the real leads you got, and see the cost per real lead for every campaign and ad.', 'aarye-marketing-addon' ), ), array( 'icon' => 'dashicons-email-alt', 'title' => __( 'Zoho Forms and email support', 'aarye-marketing-addon' ), 'text' => __( 'Zoho Forms embedded on your site get the ad source too. Pro comes with automatic updates and email support from the people who make Aarye.', 'aarye-marketing-addon' ), ), ); } /** * Free vs Pro rows: label, free, pro. * * @return array[] */ private static function rows() { $yes = '✓'; return array( array( __( 'Source, ad, campaign and keyword of every lead', 'aarye-marketing-addon' ), $yes, $yes ), array( __( 'Source proof and spam check', 'aarye-marketing-addon' ), $yes, $yes ), array( __( 'Dashboard, CSV export and Google Sheets', 'aarye-marketing-addon' ), $yes, $yes ), array( __( 'Leads sent to your CRM, database or webhook', 'aarye-marketing-addon' ), '', $yes ), array( __( 'WhatsApp, call, SMS and email clicks', 'aarye-marketing-addon' ), '', $yes ), array( __( 'Form analytics and abandonment by field', 'aarye-marketing-addon' ), '', $yes ), array( __( 'Pages viewed and IP address on every lead', 'aarye-marketing-addon' ), '', $yes ), array( __( 'Automations: status, email and routing rules', 'aarye-marketing-addon' ), '', $yes ), array( __( 'Spam and bot protection', 'aarye-marketing-addon' ), __( 'Flagged', 'aarye-marketing-addon' ), __( 'Blocked', 'aarye-marketing-addon' ) ), array( __( 'Cost per real lead with Laghavi Ads Hub', 'aarye-marketing-addon' ), '', $yes ), array( __( 'Email support and automatic updates', 'aarye-marketing-addon' ), '', $yes ), ); } /** * The screen. */ public static function page() { if ( ! current_user_can( AARYE_Admin::cap() ) ) { return; } $plans = array( array( __( 'Personal', 'aarye-marketing-addon' ), __( '1 website', 'aarye-marketing-addon' ), '$59', false ), array( __( 'Business', 'aarye-marketing-addon' ), __( 'Up to 5 websites', 'aarye-marketing-addon' ), '$129', true ), array( __( 'Agency', 'aarye-marketing-addon' ), __( 'Unlimited websites', 'aarye-marketing-addon' ), '$249', false ), ); ?>