This study explores the integration of ChatGPT into Social Learning Analytics (SLA) to support programming education among computer science students at Mustapha Stambouli University, Mascara, Algeria. Utilizing a mixed-methods approach, the research combines quantitative surveys and qualitative analysis of recorded interactions of one example and interviews to examine the effectiveness, challenges, and perceptions of ChatGPT’s use in programming tasks across Arabic, French, and English. The study involved 57 students and five teachers, providing a comprehensive view of ChatGPT’s impact on learning experiences, engagement patterns, and programming performance. Results indicate that ChatGPT is frequently used as a supplementary tool, especially for programming-related queries, debugging, and last-minute assistance before deadlines. The tool’s adaptability to students’ needs, combined with its ease of use, enhances its perceived value in supporting independent learning. However, the limitations of the free version—such as restricted access, slower response times, and occasional inaccuracies—were frequently cited as barriers to consistent, effective use. Teachers acknowledged ChatGPT’s role in easing instructional burdens but emphasized the need for critical oversight to prevent over-reliance on AI-generated content. Ethical concerns regarding data privacy, academic integrity, and the quality of AI feedback were highlighted as key issues requiring attention. Interestingly, a significant portion of students expressed the belief that AI, including ChatGPT, could potentially replace human programmers in the near future, reflecting both optimism and concern about the evolving role of AI in the field. Despite this, educators maintained that while ChatGPT can augment programming education, human intuition, creativity, and contextual understanding remain irreplaceable. The study concludes that ChatGPT’s integration into SLA offers substantial opportunities to enhance educational support and enrich data on student learning behaviors. However, addressing accessibility issues, enhancing multilingual support, and mitigating ethical challenges are critical for maximizing the tool’s effectiveness. The findings underscore the importance of a balanced approach that leverages AI’s strengths while maintaining the essential role of human expertise in education and programming.