Beta v1.7 Changelog

SEO Book Pro Tracking Plugin for WordPress Beta Version 1.7


Modify the Form Submission

Prevent the default form submission using JavaScript. Attach an event listener to the form’s submit event, stop the default action, and instead collect all the form data.


AJAX Setup in JavaScript

Use jQuery’s AJAX method to send the form data to the server. Since WordPress uses admin-ajax.php for AJAX requests, the URL should point there. The data should include the action parameter, a WordPress nonce for security, and all the form fields.


Server-Side Handling

Create a PHP function in the plugin that handles the AJAX request. This function needs to verify the nonce, check permissions, then process and save each setting using update_option(). After saving, send a success response back.


Security Considerations

Generate a nonce in the form to validate the AJAX request. Ensure that the user has the ‘manage_options’ capability to prevent unauthorized access.


Enqueue AJAX Script

Make sure the JavaScript file with the AJAX code is properly enqueued in the admin area. Also, localize the script to pass the AJAX URL and nonce.


Update Existing JavaScript

The existing tracking.js might have code related to the form. Need to adjust it to handle AJAX submission instead of the default form submission.


Potential issues to watch out for

Nonce Verification

If the nonce isn’t generated or verified correctly, the AJAX request will fail.

Data Serialization

Ensuring all form fields are correctly captured and sent in the AJAX request.

Error Handling

Providing feedback to the user if the save fails, maybe through admin notices or console logs.

Compatibility

Making sure that the AJAX code doesn’t interfere with existing JavaScript functionality, like the tabs or previews.

Listen to our customers

Our customers' feedback speaks volumes about the impact our services have. From SEO audits to innovative digital marketing strategies, see how our team is helping businesses thrive. Hear firsthand accounts from professionals in diverse industries about their experiences working with us.

Reviews Leave us Review More Testimonials

User Testimonials

Gregory Herrmann

Creator & Facilitator of Curricula, Trainings, and Learning & Development Programs

★ ★ ★ ★ ★

Dimitar was a pleasure to work with. Beyond his dedication to his direct role and work, Dimitar was instrumental in helping brainstorm and create different learning and development content related to our Engineering department. This assistance was incredibly helpful as it bolstered our technical training to offer to our team members.

Brandon Caballero

Director of Analytics at Hennessey Digital

★ ★ ★ ★ ★

Working with Dimitar was always educational. He consistently went above and beyond what was requested and left you knowing and understanding more about every project he was a part of. I would love to work with him again.

Adam Blye

Senior Manager, SEO Cox Media Group

★ ★ ★ ★ ★

Dimitar is one of the most talented Technical SEOs I have ever had the chance to work with. His passion and top-notch SEO audits make him an invaluable resource. He also excels as a people manager and is always highly motivated to assist with challenging projects.

Willow Titensor

SEO Expert and Digital Marketing Professional

★ ★ ★ ★ ★

Dimitar’s technical knowledge, industry expertise, and responsiveness make him a highly valuable asset. He is also driven to learn more and improve constantly, making him even more indispensable. Plus, he’s a pleasure to work with personally and professionally.

Blin Kazazi

CTO at Hennessey Digital

★ ★ ★ ★ ★

Dimitar is one of the smartest people I’ve worked with. His creative solutions, detailed audits, and competitor analyses make him indispensable for diagnosing issues and identifying growth opportunities.

Scott Shrum

President & COO at Hennessey Digital

★ ★ ★ ★ ★

Dimitar’s passion and dedication to SEO are unmatched. He has a talent for digging deep to uncover solutions that others miss, staying ahead of trends, and providing outstanding SEO expertise.

Egzon Hasi

Director of Engineering at Hennessey Digital

★ ★ ★ ★ ★

Dimitar is amazing! He is a genius when it comes to SEO. I’ve worked closely with him on projects where he managed to increase client rankings significantly in just a few months.

Ioana Gratianu

Senior Product Manager at Adore Me

★ ★ ★ ★ ★

Dimitar is a passionate professional with strong technical skills and a deep understanding of website development. His in-depth SEO audits always find the missing pieces of the puzzle.

Get in Touch with Us

Have questions or need assistance?

Fill out the form below, and our team will get back to you shortly.

We're here to help!


By submitting this form, you agree to our Privacy and Terms.